From 9502832b97ad11259f5e1c648adaa17f5222a32a Mon Sep 17 00:00:00 2001 From: Lammert Bies Date: Thu, 15 Dec 2016 09:29:41 +0100 Subject: [PATCH] Generalized utility functions --- Makefile | 688 ++++++++++++------ include/libhttp.h | 194 +++-- src/extern_sha1.c | 3 + src/extern_ssl_lut.c | 3 + src/httplib_accept_new_connection.c | 3 + src/httplib_addenv.c | 3 + src/httplib_atomic_dec.c | 3 + src/httplib_atomic_inc.c | 3 + src/httplib_authorize.c | 3 + src/httplib_base64_encode.c | 3 + src/httplib_check_acl.c | 3 + src/httplib_check_authorization.c | 3 + src/httplib_check_feature.c | 3 + src/httplib_check_password.c | 3 + src/httplib_close_all_listening_sockets.c | 3 + src/httplib_close_connection.c | 3 + src/httplib_close_socket_gracefully.c | 3 + src/httplib_closedir.c | 38 +- src/httplib_compare_dir_entries.c | 3 + src/httplib_config_options.c | 3 + src/httplib_connect_client.c | 5 +- src/httplib_connect_socket.c | 3 + src/httplib_connect_websocket_client.c | 3 + src/httplib_construct_etag.c | 3 + src/httplib_consume_socket.c | 3 + src/httplib_cry.c | 3 + src/httplib_delete_file.c | 3 + src/httplib_difftimespec.c | 3 + src/httplib_dir_scan_callback.c | 3 + src/httplib_discard_unread_request_data.c | 3 + src/httplib_download.c | 3 + src/httplib_event_queue.c | 3 + src/httplib_fc.c | 3 + src/httplib_fclose.c | 3 + src/httplib_fclose_on_exec.c | 3 + src/httplib_fgets.c | 3 + src/httplib_fopen.c | 3 + src/httplib_forward_body_data.c | 3 + src/httplib_free_context.c | 3 + src/httplib_get_builtin_mime_type.c | 3 + src/httplib_get_context.c | 3 + src/httplib_get_cookie.c | 3 + src/httplib_get_first_ssl_listener_index.c | 3 + src/httplib_get_header.c | 3 + src/httplib_get_mime_type.c | 3 + src/httplib_get_option.c | 3 + src/httplib_get_option_index.c | 3 + src/httplib_get_random.c | 3 + src/httplib_get_rel_url_at_current_server.c | 3 + src/httplib_get_remote_ip.c | 3 + src/httplib_get_request_handler.c | 3 + src/httplib_get_request_info.c | 3 + src/httplib_get_request_len.c | 3 + src/httplib_get_response.c | 3 + src/httplib_get_response_code_text.c | 3 + src/httplib_get_server_ports.c | 3 + src/httplib_get_system_name.c | 3 + src/httplib_get_uri_type.c | 3 + src/httplib_get_user_connection_data.c | 3 + src/httplib_get_user_data.c | 3 + src/httplib_get_valid_options.c | 3 + src/httplib_get_var.c | 3 + src/httplib_getreq.c | 3 + src/httplib_global_data.c | 3 + src/httplib_gmt_time_string.c | 3 + src/httplib_handle_cgi_request.c | 5 +- src/httplib_handle_directory_request.c | 3 + src/httplib_handle_file_based_request.c | 3 + src/httplib_handle_form_request.c | 3 + ..._handle_not_modified_static_file_request.c | 3 + src/httplib_handle_propfind.c | 3 + src/httplib_handle_request.c | 3 + src/httplib_handle_static_file_request.c | 3 + src/httplib_handle_websocket_request.c | 3 + src/httplib_header_has_option.c | 3 + src/httplib_inet_pton.c | 3 + src/httplib_initialize_ssl.c | 3 + src/httplib_interpret_uri.c | 3 + src/httplib_is_authorized_for_put.c | 3 + src/httplib_is_file_in_memory.c | 3 + src/httplib_is_file_opened.c | 3 + src/httplib_is_not_modified.c | 3 + src/httplib_is_put_or_delete_method.c | 3 + src/httplib_is_valid_http_method.c | 3 + src/httplib_is_valid_port.c | 3 + src/httplib_is_websocket_protocol.c | 3 + src/httplib_join_thread.c | 3 + src/httplib_kill.c | 53 ++ src/httplib_load_dll.c | 3 + src/httplib_lock_unlock_connection.c | 3 + src/httplib_lock_unlock_context.c | 3 + src/httplib_log_access.c | 3 + src/httplib_lowercase.c | 3 + src/httplib_main.h | 129 ++-- src/httplib_malloc.c | 3 + src/httplib_master_thread.c | 3 + src/httplib_match_prefix.c | 3 + src/httplib_md5.c | 3 + src/httplib_mkcol.c | 5 +- src/httplib_mkdir.c | 33 +- src/httplib_modify_passwords_file.c | 3 + src/httplib_must_hide_file.c | 3 + src/httplib_next_option.c | 3 + src/httplib_open_auth_file.c | 3 + src/httplib_opendir.c | 55 +- src/httplib_parse_auth_header.c | 3 + src/httplib_parse_date_string.c | 3 + src/httplib_parse_http_headers.c | 3 + src/httplib_parse_http_message.c | 3 + src/httplib_parse_net.c | 3 + src/httplib_parse_range_header.c | 3 + src/httplib_path_to_unicode.c | 6 +- src/httplib_poll.c | 50 +- src/httplib_prepare_cgi_environment.c | 3 + src/httplib_print_dir_entry.c | 3 + src/httplib_printf.c | 3 + src/httplib_process_new_connection.c | 3 + src/httplib_produce_socket.c | 3 + src/httplib_pull.c | 3 + src/httplib_pull_all.c | 3 + src/httplib_push_all.c | 3 + src/httplib_put_dir.c | 5 +- src/httplib_put_file.c | 3 + src/httplib_read.c | 3 + src/httplib_read_auth_file.c | 3 + src/httplib_read_request.c | 3 + src/httplib_read_websocket.c | 3 + src/httplib_readdir.c | 52 +- src/httplib_realloc2.c | 3 + src/httplib_redirect_to_https_port.c | 3 + src/httplib_refresh_trust.c | 3 + src/httplib_remove.c | 3 + src/httplib_remove_bad_file.c | 3 + src/httplib_remove_directory.c | 9 +- src/httplib_remove_double_dots.c | 3 + src/httplib_reset_per_request_attributes.c | 3 + src/httplib_scan_directory.c | 10 +- src/httplib_send_authorization_request.c | 3 + src/httplib_send_file.c | 3 + src/httplib_send_file_data.c | 3 + src/httplib_send_http_error.c | 3 + src/httplib_send_no_cache_header.c | 3 + src/httplib_send_options.c | 3 + src/httplib_send_static_cache_header.c | 3 + src/httplib_send_websocket_handshake.c | 3 + src/httplib_set_acl_option.c | 3 + src/httplib_set_auth_handler.c | 3 + src/httplib_set_close_on_exec.c | 3 + src/httplib_set_gpass_option.c | 3 + src/httplib_set_handler_type.c | 3 + src/httplib_set_non_blocking_mode.c | 3 + src/httplib_set_ports_option.c | 3 + src/httplib_set_request_handler.c | 3 + src/httplib_set_sock_timeout.c | 3 + src/httplib_set_ssl_option.c | 3 + src/httplib_set_tcp_nodelay.c | 3 + src/httplib_set_thread_name.c | 3 + src/httplib_set_throttle.c | 3 + src/httplib_set_uid_option.c | 3 + src/httplib_set_user_connection_data.c | 3 + src/httplib_set_websocket_handler.c | 3 + src/httplib_should_decode_url.c | 3 + src/httplib_should_keep_alive.c | 3 + src/httplib_skip.c | 3 + src/httplib_skip_quoted.c | 3 + src/httplib_snprintf.c | 3 + src/httplib_sockaddr_to_string.c | 3 + src/httplib_spawn_process.c | 17 +- src/httplib_ssi.c | 3 + src/httplib_ssl_error.c | 3 + src/httplib_ssl_get_client_cert_info.c | 3 + src/httplib_ssl_get_protocol.c | 3 + src/httplib_ssl_id_callback.c | 3 + src/httplib_ssl_locking_callback.c | 3 + src/httplib_ssl_use_pem_file.c | 3 + src/httplib_sslize.c | 3 + src/httplib_start.c | 3 + src/httplib_start_thread.c | 3 + src/httplib_start_thread_with_id.c | 3 + src/httplib_stat.c | 3 + src/httplib_stop.c | 3 + src/httplib_store_body.c | 3 + src/httplib_strcasecmp.c | 3 + src/httplib_strcasestr.c | 3 + src/httplib_strdup.c | 3 + src/httplib_strlcpy.c | 3 + src/httplib_strncasecmp.c | 3 + src/httplib_strndup.c | 3 + src/httplib_substitute_index_file.c | 3 + src/httplib_suggest_connection_header.c | 3 + src/httplib_timer.c | 3 + src/httplib_tls_dtor.c | 3 + src/httplib_uninitialize_ssl.c | 3 + src/httplib_url_decode.c | 3 + src/httplib_url_encode.c | 3 + src/httplib_version.c | 3 + src/httplib_vprintf.c | 3 + src/httplib_websocket_client_thread.c | 3 + src/httplib_websocket_client_write.c | 3 + src/httplib_websocket_write.c | 3 + src/httplib_websocket_write_exec.c | 3 + src/httplib_worker_thread.c | 3 + src/httplib_write.c | 3 + src/main.c | 5 +- src/osx_clock_gettime.c | 3 + src/win32_clock_gettime.c | 3 + src/win32_pthread_cond_broadcast.c | 3 + src/win32_pthread_cond_destroy.c | 3 + src/win32_pthread_cond_init.c | 3 + src/win32_pthread_cond_signal.c | 3 + src/win32_pthread_cond_timedwait.c | 3 + src/win32_pthread_cond_wait.c | 3 + src/win32_pthread_getspecific.c | 3 + src/win32_pthread_key_create.c | 3 + src/win32_pthread_key_delete.c | 3 + src/win32_pthread_mutex_destroy.c | 3 + src/win32_pthread_mutex_init.c | 3 + src/win32_pthread_mutex_lock.c | 3 + src/win32_pthread_mutex_trylock.c | 3 + src/win32_pthread_mutex_unlock.c | 3 + src/win32_pthread_self.c | 3 + src/win32_pthread_setspecific.c | 3 + src/wince_gmtime.c | 3 + src/wince_gmtime_s.c | 3 + src/wince_localtime.c | 3 + src/wince_localtime_s.c | 3 + src/wince_rename.c | 3 + src/wince_stat.c | 3 + src/wince_strftime.c | 3 + src/wince_time.c | 3 + 230 files changed, 1544 insertions(+), 451 deletions(-) create mode 100644 src/httplib_kill.c diff --git a/Makefile b/Makefile index c99f8ede..5c558343 100644 --- a/Makefile +++ b/Makefile @@ -254,6 +254,7 @@ OBJLIST = \ ${OBJDIR}httplib_is_valid_port${OBJEXT} \ ${OBJDIR}httplib_is_websocket_protocol${OBJEXT} \ ${OBJDIR}httplib_join_thread${OBJEXT} \ + ${OBJDIR}httplib_kill${OBJEXT} \ ${OBJDIR}httplib_load_dll${OBJEXT} \ ${OBJDIR}httplib_lock_unlock_connection${OBJEXT} \ ${OBJDIR}httplib_lock_unlock_context${OBJEXT} \ @@ -411,655 +412,834 @@ ${LIBDIR}libhttp${LIBEXT} : \ # Individual source files with their header dependencies # -${TSTDIR}${OBJDIR}testmime${OBJEXT} : ${TSTDIR}testmime.c +${TSTDIR}${OBJDIR}testmime${OBJEXT} : ${TSTDIR}testmime.c \ + ${INCDIR}libhttp.h -${OBJDIR}extern_md5${OBJEXT} : ${SRCDIR}extern_md5.c +${OBJDIR}extern_md5${OBJEXT} : ${SRCDIR}extern_md5.c \ + ${INCDIR}libhttp.h ${OBJDIR}extern_sha1${OBJEXT} : ${SRCDIR}extern_sha1.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}extern_ssl_lut${OBJEXT} : ${SRCDIR}extern_ssl_lut.c \ ${SRCDIR}httplib_ssl.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_accept_new_connection${OBJEXT} : ${SRCDIR}httplib_accept_new_connection.c \ ${SRCDIR}httplib_ssl.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_addenv${OBJEXT} : ${SRCDIR}httplib_addenv.c \ ${SRCDIR}httplib_memory.h \ ${SRCDIR}httplib_string.h \ ${SRCDIR}httplib_utils.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_atomic_dec${OBJEXT} : ${SRCDIR}httplib_atomic_dec.c \ ${SRCDIR}httplib_utils.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_atomic_inc${OBJEXT} : ${SRCDIR}httplib_atomic_inc.c \ ${SRCDIR}httplib_utils.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_authorize${OBJEXT} : ${SRCDIR}httplib_authorize.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_base64_encode${OBJEXT} : ${SRCDIR}httplib_base64_encode.c \ ${SRCDIR}httplib_utils.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_check_acl${OBJEXT} : ${SRCDIR}httplib_check_acl.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_check_authorization${OBJEXT} : ${SRCDIR}httplib_check_authorization.c \ ${SRCDIR}httplib_string.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_check_feature${OBJEXT} : ${SRCDIR}httplib_check_feature.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_check_password${OBJEXT} : ${SRCDIR}httplib_check_password.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_close_all_listening_sockets${OBJDIR} : ${SRCDIR}httplib_close_all_listening_sockets.c \ ${SRCDIR}httplib_memory.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_close_connection${OBJEXT} : ${SRCDIR}httplib_close_connection.c \ ${SRCDIR}httplib_memory.h \ ${SRCDIR}httplib_pthread.h \ ${SRCDIR}httplib_ssl.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_close_socket_gracefully${OBJEXT} : ${SRCDIR}httplib_close_socket_gracefully.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_closedir${OBJEXT} : ${SRCDIR}httplib_closedir.c \ ${SRCDIR}httplib_memory.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_compare_dir_entries${OBJEXT} : ${SRCDIR}httplib_compare_dir_entries.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_config_options${OBJEXT} : ${SRCDIR}httplib_config_options.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_connect_client${OBJEXT} : ${SRCDIR}httplib_connect_client.c \ ${SRCDIR}httplib_memory.h \ ${SRCDIR}httplib_pthread.h \ ${SRCDIR}httplib_ssl.h \ ${SRCDIR}httplib_string.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_connect_socket${OBJEXT} : ${SRCDIR}httplib_connect_socket.c \ ${SRCDIR}httplib_memory.h \ ${SRCDIR}httplib_ssl.h \ ${SRCDIR}httplib_string.h \ ${SRCDIR}httplib_utils.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_connect_websocket_client${OBJEXT} : ${SRCDIR}httplib_connect_websocket_client.c \ ${SRCDIR}httplib_memory.h \ ${SRCDIR}httplib_string.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_construct_etag${OBJEXT} : ${SRCDIR}httplib_construct_etag.c \ ${SRCDIR}httplib_string.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_consume_socket${OBJEXT} : ${SRCDIR}httplib_consume_socket.c \ ${SRCDIR}httplib_pthread.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_cry${OBJEXT} : ${SRCDIR}httplib_cry.c \ ${SRCDIR}httplib_ssl.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_delete_file${OBJEXT} : ${SRCDIR}httplib_delete_file.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_difftimespec${OBJEXT} : ${SRCDIR}httplib_difftimespec.c \ ${SRCDIR}httplib_utils.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_dir_scan_callback${OBJEXT} : ${SRCDIR}httplib_dir_scan_callback.c \ ${SRCDIR}httplib_memory.h \ ${SRCDIR}httplib_string.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_discard_unread_request_data${OBJEXT} : ${SRCDIR}httplib_discard_unread_request_data.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_download${OBJEXT} : ${SRCDIR}httplib_download.c \ ${SRCDIR}httplib_string.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_event_queue${OBJEXT} : ${SRCDIR}httplib_event_queue.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_fc${OBJEXT} : ${SRCDIR}httplib_fc.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_fclose${OBJEXT} : ${SRCDIR}httplib_fclose.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_fclose_on_exec${OBJEXT} : ${SRCDIR}httplib_fclose_on_exec.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_fgets${OBJEXT} : ${SRCDIR}httplib_fgets.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_fopen${OBJEXT} : ${SRCDIR}httplib_fopen.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_forward_body_data${OBJEXT} : ${SRCDIR}httplib_forward_body_data.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_free_context${OBJEXT} : ${SRCDIR}httplib_free_context.c \ ${SRCDIR}httplib_memory.h \ ${SRCDIR}httplib_pthread.h \ ${SRCDIR}httplib_ssl.h \ ${SRCDIR}httplib_utils.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_get_builtin_mime_type${OBJEXT} : ${SRCDIR}httplib_get_builtin_mime_type.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_get_context${OBJEXT} : ${SRCDIR}httplib_get_context.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_get_cookie${OBJEXT} : ${SRCDIR}httplib_get_cookie.c \ ${SRCDIR}httplib_string.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_get_first_ssl_listener_index${OBJEXT} : ${SRCDIR}httplib_get_first_ssl_listener_index.c \ ${SRCDIR}httplib_ssl.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_get_header${OBJEXT} : ${SRCDIR}httplib_get_header.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_get_mime_type${OBJEXT} : ${SRCDIR}httplib_get_mime_type.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_get_option${OBJEXT} : ${SRCDIR}httplib_get_option.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_get_option_index${OBJEXT} : ${SRCDIR}httplib_get_option_index.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_get_random${OBJEXT} : ${SRCDIR}httplib_get_random.c \ ${SRCDIR}httplib_utils.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_get_rel_url_at_current_server${OBJEXT} : ${SRCDIR}httplib_get_rel_url_at_current_server.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_get_remote_ip${OBJEXT} : ${SRCDIR}httplib_get_remote_ip.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_get_request_handler${OBJEXT} : ${SRCDIR}httplib_get_request_handler.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_get_request_info${OBJEXT} : ${SRCDIR}httplib_get_request_info.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_get_request_len${OBJEXT} : ${SRCDIR}httplib_get_request_len.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_get_response${OBJEXT} : ${SRCDIR}httplib_get_response.c \ ${SRCDIR}httplib_string.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_get_response_code_text${OBJEXT} : ${SRCDIR}httplib_get_response_code_text.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_get_server_ports${OBJEXT} : ${SRCDIR}httplib_get_server_ports.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_get_system_name${OBJEXT} : ${SRCDIR}httplib_get_system_name.c \ ${SRCDIR}httplib_string.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_get_uri_type${OBJEXT} : ${SRCDIR}httplib_get_uri_type.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_get_user_connection_data${OBJEXT} : ${SRCDIR}httplib_get_user_connection_data.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_get_user_data${OBJEXT} : ${SRCDIR}httplib_get_user_data.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_get_valid_options${OBJEXT} : ${SRCDIR}httplib_get_valid_options.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_get_var${OBJEXT} : ${SRCDIR}httplib_get_var.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_getreq${OBJEXT} : ${SRCDIR}httplib_getreq.c \ ${SRCDIR}httplib_string.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_global_data${OBJEXT} : ${SRCDIR}httplib_global_data.c \ ${SRCDIR}httplib_ssl.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_gmt_time_string${OBJEXT} : ${SRCDIR}httplib_gmt_time_string.c \ ${SRCDIR}httplib_string.h \ ${SRCDIR}httplib_utils.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_handle_cgi_request${OBJEXT} : ${SRCDIR}httplib_handle_cgi_request.c \ ${SRCDIR}httplib_memory.h \ ${SRCDIR}httplib_string.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_handle_directory_request${OBJEXT} : ${SRCDIR}httplib_handle_directory_request.c \ ${SRCDIR}httplib_memory.h \ ${SRCDIR}httplib_utils.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_handle_file_based_request${OBJEXT} : ${SRCDIR}httplib_handle_file_based_request.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_handle_form_request${OBJEXT} : ${SRCDIR}httplib_handle_form_request.c \ ${SRCDIR}httplib_memory.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_handle_not_modified_static_file_request${OBJEXT} : ${SRCDIR}httplib_handle_not_modified_static_file_request.c \ ${SRCDIR}httplib_utils.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_handle_propfind${OBJEXT} : ${SRCDIR}httplib_handle_propfind.c \ ${SRCDIR}httplib_string.h \ ${SRCDIR}httplib_utils.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_handle_request${OBJEXT} : ${SRCDIR}httplib_handle_request.c \ ${SRCDIR}httplib_ssl.h \ ${SRCDIR}httplib_utils.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_handle_static_file_request${OBJEXT} : ${SRCDIR}httplib_handle_static_file_request.c \ ${SRCDIR}httplib_string.h \ ${SRCDIR}httplib_utils.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_handle_websocket_request${OBJEXT} : ${SRCDIR}httplib_handle_websocket_request.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_header_has_option${OBJEXT} : ${SRCDIR}httplib_header_has_option.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_inet_pton${OBJEXT} : ${SRCDIR}httplib_inet_pton.c \ ${SRCDIR}httplib_utils.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_initialize_ssl${OBJEXT} : ${SRCDIR}httplib_initialize_ssl.c \ ${SRCDIR}httplib_memory.h \ ${SRCDIR}httplib_pthread.h \ ${SRCDIR}httplib_ssl.h \ ${SRCDIR}httplib_utils.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_interpret_uri${OBJEXT} : ${SRCDIR}httplib_interpret_uri.c \ ${SRCDIR}httplib_string.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_is_authorized_for_put${OBJEXT} : ${SRCDIR}httplib_is_authorized_for_put.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_is_file_in_memory${OBJEXT} : ${SRCDIR}httplib_is_file_in_memory.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_is_file_opened${OBJEXT} : ${SRCDIR}httplib_is_file_opened.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_is_not_modified${OBJEXT} : ${SRCDIR}httplib_is_not_modified.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_is_put_or_delete_method${OBJEXT} : ${SRCDIR}httplib_is_put_or_delete_method.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_is_valid_http_method${OBJEXT} : ${SRCDIR}httplib_is_valid_http_method.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_is_valid_port${OBJEXT} : ${SRCDIR}httplib_is_valid_port.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_is_websocket_protocol${OBJEXT} : ${SRCDIR}httplib_is_websocket_protocol.c \ ${SRCDIR}httplib_string.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_join_thread${OBJEXT} : ${SRCDIR}httplib_join_thread.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h + +${OBJDIR}httplib_kill${OBJEXT} : ${SRCDIR}httplib_kill.c \ + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_load_dll${OBJEXT} : ${SRCDIR}httplib_load_dll.c \ ${SRCDIR}httplib_ssl.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_lock_unlock_connection${OBJEXT} : ${SRCDIR}httplib_lock_unlock_connection.c \ ${SRCDIR}httplib_pthread.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_lock_unlock_context${OBJEXT} : ${SRCDIR}httplib_lock_unlock_context.c \ ${SRCDIR}httplib_pthread.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_log_access${OBJEXT} : ${SRCDIR}httplib_log_access.c \ ${SRCDIR}httplib_ssl.h \ ${SRCDIR}httplib_string.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_lowercase${OBJEXT} : ${SRCDIR}httplib_lowercase.c \ ${SRCDIR}httplib_utils.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_malloc${OBJEXT} : ${SRCDIR}httplib_malloc.c \ ${SRCDIR}httplib_memory.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_master_thread${OBJEXT} : ${SRCDIR}httplib_master_thread.c \ ${SRCDIR}httplib_pthread.h \ ${SRCDIR}httplib_ssl.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_match_prefix${OBJEXT} : ${SRCDIR}httplib_match_prefix.c \ ${SRCDIR}httplib_utils.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_md5${OBJEXT} : ${SRCDIR}httplib_md5.c \ + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_mkcol${OBJEXT} : ${SRCDIR}httplib_mkcol.c \ ${SRCDIR}httplib_utils.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_mkdir${OBJEXT} : ${SRCDIR}httplib_mkdir.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_modify_passwords_file${OBJEXT} : ${SRCDIR}httplib_modify_passwords_file.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_must_hide_file${OBJEXT} : ${SRCDIR}httplib_must_hide_file.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_next_option${OBJEXT} : ${SRCDIR}httplib_next_option.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_open_auth_file${OBJEXT} : ${SRCDIR}httplib_open_auth_file.c \ ${SRCDIR}httplib_string.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_opendir${OBJEXT} : ${SRCDIR}httplib_opendir.c \ ${SRCDIR}httplib_memory.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_parse_auth_header${OBJEXT} : ${SRCDIR}httplib_parse_auth_header.c \ ${SRCDIR}httplib_string.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_parse_date_string${OBJEXT} : ${SRCDIR}httplib_parse_date_string.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_parse_http_headers${OBJEXT} : ${SRCDIR}httplib_parse_http_headers.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_parse_http_message${OBJEXT} : ${SRCDIR}httplib_parse_http_message.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_parse_net${OBJEXT} : ${SRCDIR}httplib_parse_net.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_parse_range_header${OBJEXT} : ${SRCDIR}httplib_parse_range_header.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_path_to_unicode${OBJEXT} : ${SRCDIR}httplib_path_to_unicode.c \ ${SRCDIR}httplib_string.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_poll${OBJEXT} : ${SRCDIR}httplib_poll.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_prepare_cgi_environment${OBJEXT} : ${SRCDIR}httplib_prepare_cgi_environment.c \ ${SRCDIR}httplib_memory.h \ ${SRCDIR}httplib_ssl.h \ ${SRCDIR}httplib_string.h \ ${SRCDIR}httplib_utils.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_print_dir_entry${OBJEXT} : ${SRCDIR}httplib_print_dir_entry.c \ ${SRCDIR}httplib_string.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_printf${OBJEXT} : ${SRCDIR}httplib_printf.c \ ${SRCDIR}httplib_string.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_process_new_connection${OBJEXT} : ${SRCDIR}httplib_process_new_connection.c \ ${SRCDIR}httplib_memory.h \ ${SRCDIR}httplib_string.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_produce_socket${OBJEXT} : ${SRCDIR}httplib_produce_socket.c \ ${SRCDIR}httplib_pthread.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_pull${OBJEXT} : ${SRCDIR}httplib_pull.c \ ${SRCDIR}httplib_ssl.h \ ${SRCDIR}httplib_utils.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_pull_all${OBJEXT} : ${SRCDIR}httplib_pull_all.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_push_all${OBJEXT} : ${SRCDIR}httplib_push_all.c \ ${SRCDIR}httplib_ssl.h \ ${SRCDIR}httplib_utils.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_put_dir${OBJEXT} : ${SRCDIR}httplib_put_dir.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_put_file${OBJEXT} : ${SRCDIR}httplib_put_file.c \ ${SRCDIR}httplib_utils.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_read${OBJEXT} : ${SRCDIR}httplib_read.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_read_auth_file${OBJEXT} : ${SRCDIR}httplib_read_auth_file.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_read_request${OBJEXT} : ${SRCDIR}httplib_read_request.c \ ${SRCDIR}httplib_utils.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_read_websocket${OBJEXT} : ${SRCDIR}httplib_read_websocket.c \ ${SRCDIR}httplib_memory.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_readdir${OBJEXT} : ${SRCDIR}httplib_readdir.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_realloc2${OBJEXT} : ${SRCDIR}httplib_realloc2.c \ ${SRCDIR}httplib_memory.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_redirect_to_https_port${OBJEXT} : ${SRCDIR}httplib_redirect_to_https_port.c \ ${SRCDIR}httplib_string.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_refresh_trust${OBJEXT} : ${SRCDIR}httplib_refresh_trust.c \ ${SRCDIR}httplib_ssl.h \ ${SRCDIR}httplib_utils.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_remove${OBJEXT} : ${SRCDIR}httplib_remove.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_remove_bad_file${OBJEXT} : ${SRCDIR}httplib_remove_bad_file.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_remove_directory${OBJEXT} : ${SRCDIR}httplib_remove_directory.c \ ${SRCDIR}httplib_string.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_remove_double_dots${OBJEXT} : ${SRCDIR}httplib_remove_double_dots.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_reset_per_request_attributes${OBJEXT} : ${SRCDIR}httplib_reset_per_request_attributes.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_scan_directory${OBJEXT} : ${SRCDIR}httplib_scan_directory.c \ ${SRCDIR}httplib_string.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_send_authorization_request${OBJEXT} : ${SRCDIR}httplib_send_authorization_request.c \ ${SRCDIR}httplib_pthread.h \ ${SRCDIR}httplib_utils.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_send_file${OBJEXT} : ${SRCDIR}httplib_send_file.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_send_file_data${OBJEXT} : ${SRCDIR}httplib_send_file_data.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_send_http_error${OBJEXT} : ${SRCDIR}httplib_send_http_error.c \ ${SRCDIR}httplib_string.h \ ${SRCDIR}httplib_utils.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_send_no_cache_header${OBJEXT} : ${SRCDIR}httplib_send_no_cache_header.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_send_options${OBJEXT} : ${SRCDIR}httplib_send_options.c \ ${SRCDIR}httplib_utils.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_send_static_cache_header${OBJEXT} : ${SRCDIR}httplib_send_static_cache_header.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_send_websocket_handshake${OBJEXT} : ${SRCDIR}httplib_send_websocket_handshake.c \ ${SRCDIR}httplib_string.h \ ${SRCDIR}httplib_utils.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_set_acl_option${OBJEXT} : ${SRCDIR}httplib_set_acl_option.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_set_auth_handler${OBJEXT} : ${SRCDIR}httplib_set_auth_handler.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_set_close_on_exec${OBJEXT} : ${SRCDIR}httplib_set_close_on_exec.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_set_gpass_option${OBJEXT} : ${SRCDIR}httplib_set_gpass_option.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_set_handler_type${OBJEXT} : ${SRCDIR}httplib_set_handler_type.c \ ${SRCDIR}httplib_memory.h \ ${SRCDIR}httplib_string.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_set_non_blocking_mode${OBJEXT} : ${SRCDIR}httplib_set_non_blocking_mode.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_set_ports_option${OBJEXT} : ${SRCDIR}httplib_set_ports_option.c \ ${SRCDIR}httplib_memory.h \ ${SRCDIR}httplib_utils.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_set_request_handler${OBJEXT} : ${SRCDIR}httplib_set_request_handler.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_set_ssl_option${OBJEXT} : ${SRCDIR}httplib_set_ssl_option.c \ ${SRCDIR}httplib_ssl.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_set_sock_timeout${OBJEXT} : ${SRCDIR}httplib_set_sock_timeout.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_set_tcp_nodelay${OBJEXT} : ${SRCDIR}httplib_set_tcp_nodelay.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_set_thread_name${OBJEXT} : ${SRCDIR}httplib_set_thread_name.c \ ${SRCDIR}httplib_string.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_set_throttle${OBJEXT} : ${SRCDIR}httplib_set_throttle.c \ ${SRCDIR}httplib_utils.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_set_uid_option${OBJEXT} : ${SRCDIR}httplib_set_uid_option.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_set_user_connection_data${OBJEXT} : ${SRCDIR}httplib_set_user_connection_data.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_set_websocket_handler${OBJEXT} : ${SRCDIR}httplib_set_websocket_handler.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_should_decode_url${OBJEXT} : ${SRCDIR}httplib_should_decode_url.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_should_keep_alive${OBJEXT} : ${SRCDIR}httplib_should_keep_alive.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_skip${OBJEXT} : ${SRCDIR}httplib_skip.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_skip_quoted${OBJEXT} : ${SRCDIR}httplib_skip_quoted.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_snprintf${OBJEXT} : ${SRCDIR}httplib_snprintf.c \ ${SRCDIR}httplib_string.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_sockaddr_to_string${OBJEXT} : ${SRCDIR}httplib_sockaddr_to_string.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_spawn_process${OBJEXT} : ${SRCDIR}httplib_spawn_process.c \ ${SRCDIR}httplib_string.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_ssi${OBJEXT} : ${SRCDIR}httplib_ssi.c \ ${SRCDIR}httplib_string.h \ ${SRCDIR}httplib_utils.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_ssl_error${OBJEXT} : ${SRCDIR}httplib_ssl_error.c \ ${SRCDIR}httplib_ssl.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_ssl_get_client_cert_info${OBJEXT} : ${SRCDIR}httplib_ssl_get_client_cert_info.c \ ${SRCDIR}httplib_memory.h \ ${SRCDIR}httplib_ssl.h \ ${SRCDIR}httplib_string.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_ssl_get_protocol${OBJEXT} : ${SRCDIR}httplib_ssl_get_protocol.c \ ${SRCDIR}httplib_ssl.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_ssl_id_callback${OBJEXT} : ${SRCDIR}httplib_ssl_id_callback.c \ ${SRCDIR}httplib_memory.h \ ${SRCDIR}httplib_pthread.h \ ${SRCDIR}httplib_ssl.h \ ${SRCDIR}httplib_utils.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_ssl_locking_callback${OBJEXT} : ${SRCDIR}httplib_ssl_locking_callback.c \ ${SRCDIR}httplib_pthread.h \ ${SRCDIR}httplib_ssl.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_ssl_use_pem_file${OBJEXT} : ${SRCDIR}httplib_ssl_use_pem_file.c \ ${SRCDIR}httplib_ssl.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_sslize${OBJEXT} : ${SRCDIR}httplib_sslize.c \ ${SRCDIR}httplib_ssl.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_start${OBJEXT} : ${SRCDIR}httplib_start.c \ ${SRCDIR}httplib_memory.h \ @@ -1067,205 +1247,259 @@ ${OBJDIR}httplib_start${OBJEXT} : ${SRCDIR}httplib_start.c \ ${SRCDIR}httplib_ssl.h \ ${SRCDIR}httplib_string.h \ ${SRCDIR}httplib_utils.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_start_thread${OBJEXT} : ${SRCDIR}httplib_start_thread.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_start_thread_with_id${OBJEXT} : ${SRCDIR}httplib_start_thread_with_id.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_stat${OBJEXT} : ${SRCDIR}httplib_stat.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_stop${OBJEXT} : ${SRCDIR}httplib_stop.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_store_body${OBJEXT} : ${SRCDIR}httplib_store_body.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_strcasecmp${OBJEXT} : ${SRCDIR}httplib_strcasecmp.c \ ${SRCDIR}httplib_string.h \ ${SRCDIR}httplib_utils.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_strcasestr${OBJEXT} : ${SRCDIR}httplib_strcasestr.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_strdup${OBJEXT} : ${SRCDIR}httplib_strdup.c \ ${SRCDIR}httplib_string.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_strlcpy${OBJEXT} : ${SRCDIR}httplib_strlcpy.c \ ${SRCDIR}httplib_string.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_strncasecmp${OBJEXT} : ${SRCDIR}httplib_strncasecmp.c \ ${SRCDIR}httplib_utils.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_strndup${OBJEXT} : ${SRCDIR}httplib_strndup.c \ ${SRCDIR}httplib_memory.h \ ${SRCDIR}httplib_string.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_substitute_index_file${OBJEXT} : ${SRCDIR}httplib_substitute_index_file.c \ ${SRCDIR}httplib_string.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_suggest_connection_header${OBJEXT} : ${SRCDIR}httplib_suggest_connection_header.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_timer${OBJEXT} : ${SRCDIR}httplib_timer.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_tls_dtor${OBJEXT} : ${SRCDIR}httplib_tls_dtor.c \ ${SRCDIR}httplib_memory.h \ ${SRCDIR}httplib_pthread.h \ ${SRCDIR}httplib_ssl.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_uninitialize_ssl${OBJEXT} : ${SRCDIR}httplib_uninitialize_ssl.c \ ${SRCDIR}httplib_memory.h \ ${SRCDIR}httplib_pthread.h \ ${SRCDIR}httplib_ssl.h \ ${SRCDIR}httplib_utils.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_url_decode${OBJEXT} : ${SRCDIR}httplib_url_decode.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_url_encode${OBJEXT} : ${SRCDIR}httplib_url_encode.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_version${OBJEXT} : ${SRCDIR}httplib_version.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_vprintf${OBJEXT} : ${SRCDIR}httplib_vprintf.c \ ${SRCDIR}httplib_memory.h \ ${SRCDIR}httplib_string.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_vsnprintf${OBJEXT} : ${SRCDIR}httplib_vsnprintf.c \ ${SRCDIR}httplib_string.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_websocket_client_thread${OBJEXT} : ${SRCDIR}httplib_websocket_client_thread.c \ ${SRCDIR}httplib_memory.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_websocket_client_write${OBJEXT} : ${SRCDIR}httplib_websocket_client_write.c \ ${SRCDIR}httplib_memory.h \ ${SRCDIR}httplib_utils.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_websocket_write${OBJEXT} : ${SRCDIR}httplib_websocket_write.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_websocket_write_exec${OBJEXT} : ${SRCDIR}httplib_websocket_write_exec.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_worker_thread${OBJEXT} : ${SRCDIR}httplib_worker_thread.c \ ${SRCDIR}httplib_memory.h \ ${SRCDIR}httplib_pthread.h \ ${SRCDIR}httplib_ssl.h \ ${SRCDIR}httplib_utils.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}httplib_write${OBJEXT} : ${SRCDIR}httplib_write.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}osx_clock_gettime${OBJEXT} : ${SRCDIR}osx_clock_gettime.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}win32_clock_gettime${OBJEXT} : ${SRCDIR}win32_clock_gettime.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}win32_pthread_cond_broadcast${OBJEXT} : ${SRCDIR}win32_pthread_cond_broadcast.c \ ${SRCDIR}httplib_pthread.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}win32_pthread_cond_destroy${OBJEXT} : ${SRCDIR}win32_pthread_cond_destroy.c \ ${SRCDIR}httplib_pthread.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}win32_pthread_cond_init${OBJEXT} : ${SRCDIR}win32_pthread_cond_init.c \ ${SRCDIR}httplib_pthread.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}win32_pthread_cond_signal${OBJEXT} : ${SRCDIR}win32_pthread_cond_signal.c \ ${SRCDIR}httplib_pthread.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}win32_pthread_cond_timedwait${OBJEXT} : ${SRCDIR}win32_pthread_cond_timedwait.c \ ${SRCDIR}httplib_pthread.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}win32_pthread_cond_wait${OBJEXT} : ${SRCDIR}win32_pthread_cond_wait.c \ ${SRCDIR}httplib_pthread.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}win32_pthread_getspecific${OBJEXT} : ${SRCDIR}win32_pthread_getspecific.c \ ${SRCDIR}httplib_pthread.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}win32_pthread_key_create${OBJEXT} : ${SRCDIR}win32_pthread_key_create.c \ ${SRCDIR}httplib_pthread.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}win32_pthread_key_delete${OBJEXT} : ${SRCDIR}win32_pthread_key_delete.c \ ${SRCDIR}httplib_pthread.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}win32_pthread_mutex_destroy${OBJEXT} : ${SRCDIR}win32_pthread_mutex_destroy.c \ ${SRCDIR}httplib_pthread.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}win32_pthread_mutex_init${OBJEXT} : ${SRCDIR}win32_pthread_mutex_init.c \ ${SRCDIR}httplib_pthread.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}win32_pthread_mutex_lock${OBJEXT} : ${SRCDIR}win32_pthread_mutex_lock.c \ ${SRCDIR}httplib_pthread.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}win32_pthread_mutex_trylock${OBJEXT} : ${SRCDIR}win32_pthread_mutex_trylock.c \ ${SRCDIR}httplib_pthread.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}win32_pthread_mutex_unlock${OBJEXT} : ${SRCDIR}win32_pthread_mutex_unlock.c \ ${SRCDIR}httplib_pthread.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}win32_pthread_self${OBJEXT} : ${SRCDIR}win32_pthread_self.c \ ${SRCDIR}httplib_pthread.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}win32_pthread_setspecific${OBJEXT} : ${SRCDIR}win32_pthread_setspecific.c \ ${SRCDIR}httplib_pthread.h \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}wince_gmtime${OBJEXT} : ${SRCDIR}wince_gmtime.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}wince_gmtime_s${OBJEXT} : ${SRCDIR}wince_gmtime_s.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}wince_localtime${OBJEXT} : ${SRCDIR}wince_localtime.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}wince_localtime_s${OBJEXT} : ${SRCDIR}wince_localtime_s.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}wince_rename${OBJEXT} : ${SRCDIR}wince_rename.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}wince_stat${OBJEXT} : ${SRCDIR}wince_stat.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}wince_strftime${OBJEXT} : ${SRCDIR}wince_strftime.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h ${OBJDIR}wince_time${OBJEXT} : ${SRCDIR}wince_time.c \ - ${SRCDIR}httplib_main.h + ${SRCDIR}httplib_main.h \ + ${INCDIR}libhttp.h diff --git a/include/libhttp.h b/include/libhttp.h index b5cddb6c..5fc9c7ea 100644 --- a/include/libhttp.h +++ b/include/libhttp.h @@ -22,34 +22,102 @@ * THE SOFTWARE. */ -#ifndef CIVETWEB_HEADER_INCLUDED -#define CIVETWEB_HEADER_INCLUDED +#ifndef LIBHTTP_HEADER_INCLUDED +#define LIBHTTP_HEADER_INCLUDED #define LIBHTTP_VERSION "1.9" -#ifndef CIVETWEB_API +#ifndef LIBHTTP_API #if defined(_WIN32) -#if defined(CIVETWEB_DLL_EXPORTS) -#define CIVETWEB_API __declspec(dllexport) -#elif defined(CIVETWEB_DLL_IMPORTS) -#define CIVETWEB_API __declspec(dllimport) +#if defined(LIBHTTP_DLL_EXPORTS) +#define LIBHTTP_API __declspec(dllexport) +#elif defined(LIBHTTP_DLL_IMPORTS) +#define LIBHTTP_API __declspec(dllimport) #else -#define CIVETWEB_API +#define LIBHTTP_API #endif #elif __GNUC__ >= 4 -#define CIVETWEB_API __attribute__((visibility("default"))) +#define LIBHTTP_API __attribute__((visibility("default"))) #else -#define CIVETWEB_API +#define LIBHTTP_API #endif #endif #include #include +/* + * For our Posix emulation functions to open and close directories we need + * to know the path length. If this length is not set yet, we set it here based + * on an educated guess. + */ + +#if !defined(PATH_MAX) +#define PATH_MAX (MAX_PATH) +#endif /* PATH_MAX */ + +#if !defined(PATH_MAX) +#define PATH_MAX (4096) +#endif /* PATH_MAX */ + +#if defined(_WIN32) + +/* + * The OS does not support Posix calls, but we need some of them for the + * library to function properly. We therefore define some items which makes + * life easier in the multiple target world. + */ + +#define SIGKILL (0) + +#else /* _WIN32 */ + +/* + * For Posix compliant systems we need to read some include files where + * definitions, structures and prototypes are present. + */ + +#include +#include +#include +#include + +#endif /* _WIN32 */ + #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ +#if defined(_WIN32) +/* + * In Windows we emulate the Posix directory functions to make the OS dependent + * code on the application side as small as possible. + */ +struct dirent { + char d_name[PATH_MAX]; +}; + +typedef struct DIR { + HANDLE handle; + WIN32_FIND_DATAW info; + struct dirent result; +} DIR; +#endif + +#if defined(_WIN32) && !defined(POLLIN) +/* + * If we are on Windows without poll(), we emulate this Posix function. + */ +#ifndef HAVE_POLL +struct pollfd { + SOCKET fd; + short events; + short revents; +}; +#define POLLIN (0x0300) +#endif /* HAVE_POLL */ +#endif /* _WIN32 && ! POLLIN */ + struct httplib_context; /* Handle for the HTTP service itself */ struct httplib_connection; /* Handle for the individual connection */ @@ -220,7 +288,7 @@ struct httplib_callbacks { Return: web server context, or NULL on error. */ -CIVETWEB_API struct httplib_context *httplib_start(const struct httplib_callbacks *callbacks, void *user_data, const char **configuration_options); +LIBHTTP_API struct httplib_context *httplib_start(const struct httplib_callbacks *callbacks, void *user_data, const char **configuration_options); /* Stop the web server. @@ -228,7 +296,7 @@ CIVETWEB_API struct httplib_context *httplib_start(const struct httplib_callback Must be called last, when an application wants to stop the web server and release all associated resources. This function blocks until all LibHTTP threads are stopped. Context pointer becomes invalid. */ -CIVETWEB_API void httplib_stop(struct httplib_context *); +LIBHTTP_API void httplib_stop(struct httplib_context *); /* httplib_request_handler @@ -267,7 +335,7 @@ typedef int (*httplib_request_handler)(struct httplib_connection *conn, void *cb to register it (not only a pattern match). cbdata: the callback data to give to the handler when it is called. */ -CIVETWEB_API void httplib_set_request_handler(struct httplib_context *ctx, const char *uri, httplib_request_handler handler, void *cbdata); +LIBHTTP_API void httplib_set_request_handler(struct httplib_context *ctx, const char *uri, httplib_request_handler handler, void *cbdata); /* Callback types for websocket handlers in C/C++. @@ -305,7 +373,7 @@ typedef void (*httplib_websocket_close_handler)(const struct httplib_connection Set or remove handler functions for websocket connections. This function works similar to httplib_set_request_handler - see there. */ -CIVETWEB_API void +LIBHTTP_API void httplib_set_websocket_handler(struct httplib_context *ctx, const char *uri, httplib_websocket_connect_handler connect_handler, @@ -333,7 +401,7 @@ typedef int (*httplib_authorization_handler)(struct httplib_connection *conn, vo Sets or removes a URI mapping for an authorization handler. This function works similar to httplib_set_request_handler - see there. */ -CIVETWEB_API void httplib_set_auth_handler(struct httplib_context *ctx, const char *uri, httplib_authorization_handler handler, void *cbdata); +LIBHTTP_API void httplib_set_auth_handler(struct httplib_context *ctx, const char *uri, httplib_authorization_handler handler, void *cbdata); /* Get the value of particular configuration parameter. @@ -342,25 +410,25 @@ CIVETWEB_API void httplib_set_auth_handler(struct httplib_context *ctx, const ch If given parameter name is not valid, NULL is returned. For valid names, return value is guaranteed to be non-NULL. If parameter is not set, zero-length string is returned. */ -CIVETWEB_API const char *httplib_get_option(const struct httplib_context *ctx, const char *name); +LIBHTTP_API const char *httplib_get_option(const struct httplib_context *ctx, const char *name); /* Get context from connection. */ -CIVETWEB_API struct httplib_context * +LIBHTTP_API struct httplib_context * httplib_get_context(const struct httplib_connection *conn); /* Get user data passed to httplib_start from context. */ -CIVETWEB_API void *httplib_get_user_data(const struct httplib_context *ctx); +LIBHTTP_API void *httplib_get_user_data(const struct httplib_context *ctx); /* Set user data for the current connection. */ -CIVETWEB_API void httplib_set_user_connection_data(struct httplib_connection *conn, +LIBHTTP_API void httplib_set_user_connection_data(struct httplib_connection *conn, void *data); /* Get user data set for the current connection. */ -CIVETWEB_API void * +LIBHTTP_API void * httplib_get_user_connection_data(const struct httplib_connection *conn); @@ -385,7 +453,7 @@ enum { /* Return array of struct httplib_option, representing all valid configuration options of libhttp.c. The array is terminated by a NULL name option. */ -CIVETWEB_API const struct httplib_option *httplib_get_valid_options(void); +LIBHTTP_API const struct httplib_option *httplib_get_valid_options(void); struct httplib_server_ports { @@ -405,7 +473,7 @@ struct httplib_server_ports { The caller is responsibility to allocate the required memory. This function returns the number of struct httplib_server_ports elements filled in, or <0 in case of an error. */ -CIVETWEB_API int httplib_get_server_ports(const struct httplib_context *ctx, int size, struct httplib_server_ports *ports); +LIBHTTP_API int httplib_get_server_ports(const struct httplib_context *ctx, int size, struct httplib_server_ports *ports); /* Add, edit or delete the entry in the passwords file. @@ -420,11 +488,11 @@ CIVETWEB_API int httplib_get_server_ports(const struct httplib_context *ctx, int Return: 1 on success, 0 on error. */ -CIVETWEB_API int httplib_modify_passwords_file(const char *passwords_file_name, const char *domain, const char *user, const char *password); +LIBHTTP_API int httplib_modify_passwords_file(const char *passwords_file_name, const char *domain, const char *user, const char *password); /* Return information associated with the request. */ -CIVETWEB_API const struct httplib_request_info *httplib_get_request_info(const struct httplib_connection *); +LIBHTTP_API const struct httplib_request_info *httplib_get_request_info(const struct httplib_connection *); /* Send data to the client. @@ -432,7 +500,7 @@ CIVETWEB_API const struct httplib_request_info *httplib_get_request_info(const s 0 when the connection has been closed -1 on error >0 number of bytes written on success */ -CIVETWEB_API int httplib_write(struct httplib_connection *, const void *buf, size_t len); +LIBHTTP_API int httplib_write(struct httplib_connection *, const void *buf, size_t len); /* Send data to a websocket client wrapped in a websocket frame. Uses @@ -447,7 +515,7 @@ CIVETWEB_API int httplib_write(struct httplib_connection *, const void *buf, siz 0 when the connection has been closed -1 on error >0 number of bytes written on success */ -CIVETWEB_API int httplib_websocket_write(struct httplib_connection *conn, int opcode, const char *data, size_t data_len); +LIBHTTP_API int httplib_websocket_write(struct httplib_connection *conn, int opcode, const char *data, size_t data_len); /* Send data to a websocket server wrapped in a masked websocket frame. Uses @@ -462,7 +530,7 @@ CIVETWEB_API int httplib_websocket_write(struct httplib_connection *conn, int op 0 when the connection has been closed -1 on error >0 number of bytes written on success */ -CIVETWEB_API int httplib_websocket_client_write(struct httplib_connection *conn, int opcode, const char *data, size_t data_len); +LIBHTTP_API int httplib_websocket_client_write(struct httplib_connection *conn, int opcode, const char *data, size_t data_len); /* Blocks until unique access is obtained to this connection. Intended for use @@ -470,14 +538,14 @@ CIVETWEB_API int httplib_websocket_client_write(struct httplib_connection *conn, Invoke this before httplib_write or httplib_printf when communicating with a websocket if your code has server-initiated communication as well as communication in direct response to a message. */ -CIVETWEB_API void httplib_lock_connection(struct httplib_connection *conn); -CIVETWEB_API void httplib_unlock_connection(struct httplib_connection *conn); +LIBHTTP_API void httplib_lock_connection(struct httplib_connection *conn); +LIBHTTP_API void httplib_unlock_connection(struct httplib_connection *conn); /* Lock server context. This lock may be used to protect resources that are shared between different connection/worker threads. */ -CIVETWEB_API void httplib_lock_context(struct httplib_context *ctx); -CIVETWEB_API void httplib_unlock_context(struct httplib_context *ctx); +LIBHTTP_API void httplib_lock_context(struct httplib_context *ctx); +LIBHTTP_API void httplib_unlock_context(struct httplib_context *ctx); /* Opcodes, from http://tools.ietf.org/html/rfc6455 */ @@ -513,11 +581,11 @@ enum { /* Send data to the client using printf() semantics. Works exactly like httplib_write(), but allows to do message formatting. */ -CIVETWEB_API int httplib_printf(struct httplib_connection *, PRINTF_FORMAT_STRING(const char *fmt), ...) PRINTF_ARGS(2, 3); +LIBHTTP_API int httplib_printf(struct httplib_connection *, PRINTF_FORMAT_STRING(const char *fmt), ...) PRINTF_ARGS(2, 3); /* Send contents of the entire file together with HTTP headers. */ -CIVETWEB_API void httplib_send_file(struct httplib_connection *conn, const char *path); +LIBHTTP_API void httplib_send_file(struct httplib_connection *conn, const char *path); /* Send contents of the entire file together with HTTP headers. Parameters: @@ -526,7 +594,7 @@ CIVETWEB_API void httplib_send_file(struct httplib_connection *conn, const char mime_type: Content-Type for file. NULL will cause the type to be looked up by the file extension. */ -CIVETWEB_API void httplib_send_mime_file(struct httplib_connection *conn, const char *path, const char *mime_type); +LIBHTTP_API void httplib_send_mime_file(struct httplib_connection *conn, const char *path, const char *mime_type); /* Send contents of the entire file together with HTTP headers. Parameters: @@ -539,10 +607,10 @@ CIVETWEB_API void httplib_send_mime_file(struct httplib_connection *conn, const included twice. NULL does not append anything. */ -CIVETWEB_API void httplib_send_mime_file2(struct httplib_connection *conn, const char *path, const char *mime_type, const char *additional_headers); +LIBHTTP_API void httplib_send_mime_file2(struct httplib_connection *conn, const char *path, const char *mime_type, const char *additional_headers); /* Store body data into a file. */ -CIVETWEB_API long long httplib_store_body(struct httplib_connection *conn, const char *path); +LIBHTTP_API long long httplib_store_body(struct httplib_connection *conn, const char *path); /* Read entire request body and store it in a file "path". Return: < 0 Error @@ -555,7 +623,7 @@ CIVETWEB_API long long httplib_store_body(struct httplib_connection *conn, const 0 connection has been closed by peer. No more data could be read. < 0 read error. No more data could be read from the connection. > 0 number of bytes read into the buffer. */ -CIVETWEB_API int httplib_read(struct httplib_connection *, void *buf, size_t len); +LIBHTTP_API int httplib_read(struct httplib_connection *, void *buf, size_t len); /* Get the value of particular HTTP header. @@ -563,7 +631,7 @@ CIVETWEB_API int httplib_read(struct httplib_connection *, void *buf, size_t len This is a helper function. It traverses request_info->http_headers array, and if the header is present in the array, returns its value. If it is not present, NULL is returned. */ -CIVETWEB_API const char *httplib_get_header(const struct httplib_connection *, const char *name); +LIBHTTP_API const char *httplib_get_header(const struct httplib_connection *, const char *name); /* Get a value of particular form variable. @@ -585,7 +653,7 @@ CIVETWEB_API const char *httplib_get_header(const struct httplib_connection *, c Destination buffer is guaranteed to be '\0' - terminated if it is not NULL or zero length. */ -CIVETWEB_API int httplib_get_var(const char *data, size_t data_len, const char *var_name, char *dst, size_t dst_len); +LIBHTTP_API int httplib_get_var(const char *data, size_t data_len, const char *var_name, char *dst, size_t dst_len); /* Get a value of particular form variable. @@ -611,7 +679,7 @@ CIVETWEB_API int httplib_get_var(const char *data, size_t data_len, const char * Destination buffer is guaranteed to be '\0' - terminated if it is not NULL or zero length. */ -CIVETWEB_API int httplib_get_var2(const char *data, size_t data_len, const char *var_name, char *dst, size_t dst_len, size_t occurrence); +LIBHTTP_API int httplib_get_var2(const char *data, size_t data_len, const char *var_name, char *dst, size_t dst_len, size_t occurrence); /* Fetch value of certain cookie variable into the destination buffer. @@ -627,7 +695,7 @@ CIVETWEB_API int httplib_get_var2(const char *data, size_t data_len, const char parameter is not found). -2 (destination buffer is NULL, zero length or too small to hold the value). */ -CIVETWEB_API int httplib_get_cookie(const char *cookie, const char *var_name, char *buf, size_t buf_len); +LIBHTTP_API int httplib_get_cookie(const char *cookie, const char *var_name, char *buf, size_t buf_len); /* Download data from the remote web server. @@ -645,7 +713,7 @@ CIVETWEB_API int httplib_get_cookie(const char *cookie, const char *var_name, ch conn = httplib_download("google.com", 80, 0, ebuf, sizeof(ebuf), "%s", "GET / HTTP/1.0\r\nHost: google.com\r\n\r\n"); */ -CIVETWEB_API struct httplib_connection * +LIBHTTP_API struct httplib_connection * httplib_download(const char *host, int port, int use_ssl, @@ -656,7 +724,7 @@ httplib_download(const char *host, /* Close the connection opened by httplib_download(). */ -CIVETWEB_API void httplib_close_connection(struct httplib_connection *conn); +LIBHTTP_API void httplib_close_connection(struct httplib_connection *conn); /* This structure contains callback functions for handling form fields. @@ -741,24 +809,24 @@ enum { * error. In this case a number < 0 is returned as well. * In any case, it is the duty of the caller to remove files once they are * no longer required. */ -CIVETWEB_API int httplib_handle_form_request(struct httplib_connection *conn, struct httplib_form_data_handler *fdh); +LIBHTTP_API int httplib_handle_form_request(struct httplib_connection *conn, struct httplib_form_data_handler *fdh); /* Convenience function -- create detached thread. Return: 0 on success, non-0 on error. */ typedef void *(*httplib_thread_func_t)(void *); -CIVETWEB_API int httplib_start_thread(httplib_thread_func_t f, void *p); +LIBHTTP_API int httplib_start_thread(httplib_thread_func_t f, void *p); -CIVETWEB_API const char * httplib_get_builtin_mime_type( const char *file_name ); +LIBHTTP_API const char * httplib_get_builtin_mime_type( const char *file_name ); /* Get text representation of HTTP status code. */ -CIVETWEB_API const char *httplib_get_response_code_text(struct httplib_connection *conn, int response_code); +LIBHTTP_API const char *httplib_get_response_code_text(struct httplib_connection *conn, int response_code); /* Return LibHTTP version. */ -CIVETWEB_API const char *httplib_version(void); +LIBHTTP_API const char *httplib_version(void); /* URL-decode input buffer into destination buffer. @@ -767,13 +835,13 @@ CIVETWEB_API const char *httplib_version(void); uses '+' as character for space, see RFC 1866 section 8.2.1 http://ftp.ics.uci.edu/pub/ietf/html/rfc1866.txt Return: length of the decoded data, or -1 if dst buffer is too small. */ -CIVETWEB_API int httplib_url_decode(const char *src, int src_len, char *dst, int dst_len, int is_form_url_encoded); +LIBHTTP_API int httplib_url_decode(const char *src, int src_len, char *dst, int dst_len, int is_form_url_encoded); /* URL-encode input buffer into destination buffer. returns the length of the resulting buffer or -1 is the buffer is too small. */ -CIVETWEB_API int httplib_url_encode(const char *src, char *dst, size_t dst_len); +LIBHTTP_API int httplib_url_encode(const char *src, char *dst, size_t dst_len); /* MD5 hash given strings. @@ -782,7 +850,7 @@ CIVETWEB_API int httplib_url_encode(const char *src, char *dst, size_t dst_len); MD5 hash. Example: char buf[33]; httplib_md5(buf, "aa", "bb", NULL); */ -CIVETWEB_API char *httplib_md5(char buf[33], ...); +LIBHTTP_API char *httplib_md5(char buf[33], ...); /* Print error message to the opened error log stream. @@ -792,12 +860,12 @@ CIVETWEB_API char *httplib_md5(char buf[33], ...); ...: variable argument list Example: httplib_cry(conn,"i like %s", "logging"); */ -CIVETWEB_API void httplib_cry(const struct httplib_connection *conn, PRINTF_FORMAT_STRING(const char *fmt), ...) PRINTF_ARGS(2, 3); +LIBHTTP_API void httplib_cry(const struct httplib_connection *conn, PRINTF_FORMAT_STRING(const char *fmt), ...) PRINTF_ARGS(2, 3); /* utility methods to compare two buffers, case insensitive. */ -CIVETWEB_API int httplib_strcasecmp(const char *s1, const char *s2); -CIVETWEB_API int httplib_strncasecmp(const char *s1, const char *s2, size_t len); +LIBHTTP_API int httplib_strcasecmp(const char *s1, const char *s2); +LIBHTTP_API int httplib_strncasecmp(const char *s1, const char *s2, size_t len); /* Connect to a websocket as a client @@ -818,7 +886,7 @@ CIVETWEB_API int httplib_strncasecmp(const char *s1, const char *s2, size_t len) On success, valid httplib_connection object. On error, NULL. Se error_buffer for details. */ -CIVETWEB_API struct httplib_connection * +LIBHTTP_API struct httplib_connection * httplib_connect_websocket_client(const char *host, int port, int use_ssl, @@ -843,7 +911,7 @@ httplib_connect_websocket_client(const char *host, On success, valid httplib_connection object. On error, NULL. Se error_buffer for details. */ -CIVETWEB_API struct httplib_connection *httplib_connect_client(const char *host, int port, int use_ssl, char *error_buffer, size_t error_buffer_size); +LIBHTTP_API struct httplib_connection *httplib_connect_client(const char *host, int port, int use_ssl, char *error_buffer, size_t error_buffer_size); struct httplib_client_options { @@ -855,7 +923,7 @@ struct httplib_client_options { }; -CIVETWEB_API struct httplib_connection * +LIBHTTP_API struct httplib_connection * httplib_connect_client_secure(const struct httplib_client_options *client_options, char *error_buffer, size_t error_buffer_size); @@ -873,7 +941,7 @@ enum { TIMEOUT_INFINITE = -1 }; On success, >= 0 On error/timeout, < 0 */ -CIVETWEB_API int httplib_get_response(struct httplib_connection *conn, char *ebuf, size_t ebuf_len, int timeout); +LIBHTTP_API int httplib_get_response(struct httplib_connection *conn, char *ebuf, size_t ebuf_len, int timeout); /* Check which features where set when LibHTTP has been compiled. @@ -891,11 +959,17 @@ CIVETWEB_API int httplib_get_response(struct httplib_connection *conn, char *ebu If feature is available > 0 If feature is not available = 0 */ -CIVETWEB_API unsigned httplib_check_feature(unsigned feature); +LIBHTTP_API unsigned httplib_check_feature(unsigned feature); +LIBHTTP_API int httplib_closedir( DIR *dir ); +LIBHTTP_API int httplib_kill( pid_t pid, int sig_num ); +LIBHTTP_API int httplib_mkdir( const char *path, int mode ); +LIBHTTP_API DIR * httplib_opendir( const char *name ); +LIBHTTP_API int httplib_poll( struct pollfd *pfd, unsigned int n, int milliseconds ); +LIBHTTP_API struct dirent * httplib_readdir( DIR *dir ); #ifdef __cplusplus } #endif /* __cplusplus */ -#endif /* CIVETWEB_HEADER_INCLUDED */ +#endif /* LIBHTTP_HEADER_INCLUDED */ diff --git a/src/extern_sha1.c b/src/extern_sha1.c index 756025cc..5e87cbad 100644 --- a/src/extern_sha1.c +++ b/src/extern_sha1.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/extern_ssl_lut.c b/src/extern_ssl_lut.c index e16296cf..97737f0b 100644 --- a/src/extern_ssl_lut.c +++ b/src/extern_ssl_lut.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_accept_new_connection.c b/src/httplib_accept_new_connection.c index 471d78ab..c9959a2a 100644 --- a/src/httplib_accept_new_connection.c +++ b/src/httplib_accept_new_connection.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * =========== + * Release 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_addenv.c b/src/httplib_addenv.c index c8e6029e..f9495c6f 100644 --- a/src/httplib_addenv.c +++ b/src/httplib_addenv.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_atomic_dec.c b/src/httplib_atomic_dec.c index c947e5cd..5549076c 100644 --- a/src/httplib_atomic_dec.c +++ b/src/httplib_atomic_dec.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_atomic_inc.c b/src/httplib_atomic_inc.c index cbee496d..a9ed6fa7 100644 --- a/src/httplib_atomic_inc.c +++ b/src/httplib_atomic_inc.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_authorize.c b/src/httplib_authorize.c index 49986f48..b86843e7 100644 --- a/src/httplib_authorize.c +++ b/src/httplib_authorize.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_base64_encode.c b/src/httplib_base64_encode.c index 241fe90a..b825884c 100644 --- a/src/httplib_base64_encode.c +++ b/src/httplib_base64_encode.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_check_acl.c b/src/httplib_check_acl.c index 2bb553b8..1bb1b9a7 100644 --- a/src/httplib_check_acl.c +++ b/src/httplib_check_acl.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_check_authorization.c b/src/httplib_check_authorization.c index 0450f8bc..a099aa12 100644 --- a/src/httplib_check_authorization.c +++ b/src/httplib_check_authorization.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_check_feature.c b/src/httplib_check_feature.c index e0ddc083..b8a969f3 100644 --- a/src/httplib_check_feature.c +++ b/src/httplib_check_feature.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_check_password.c b/src/httplib_check_password.c index cddd9974..d7ec4b00 100644 --- a/src/httplib_check_password.c +++ b/src/httplib_check_password.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_close_all_listening_sockets.c b/src/httplib_close_all_listening_sockets.c index 27820c4d..f0129c4f 100644 --- a/src/httplib_close_all_listening_sockets.c +++ b/src/httplib_close_all_listening_sockets.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_close_connection.c b/src/httplib_close_connection.c index d5269a77..4148fe76 100644 --- a/src/httplib_close_connection.c +++ b/src/httplib_close_connection.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_close_socket_gracefully.c b/src/httplib_close_socket_gracefully.c index 8dfd4670..68b2b4f0 100644 --- a/src/httplib_close_socket_gracefully.c +++ b/src/httplib_close_socket_gracefully.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_closedir.c b/src/httplib_closedir.c index fda57753..fd242168 100644 --- a/src/httplib_closedir.c +++ b/src/httplib_closedir.c @@ -20,29 +20,47 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 2.0 */ #include "httplib_main.h" #include "httplib_memory.h" +/* + * int httplib_closedir( DIR *dir ); + * + * The function httplib_closedir() closes a previously opened directory. On + * systems which support Posix, this is done with a call to the closedir() + * system fuction. Otherwise the function is emulated. + */ + +LIBHTTP_API int httplib_closedir( DIR *dir ) { + #if defined(_WIN32) -int XX_httplib_closedir( DIR *dir ) { + int result; - int result = 0; + result = 0; - if (dir != NULL) { - if (dir->handle != INVALID_HANDLE_VALUE) - result = FindClose(dir->handle) ? 0 : -1; + if ( dir != NULL ) { + + if ( dir->handle != INVALID_HANDLE_VALUE ) result = ( FindClose( dir->handle ) ) ? 0 : -1; + XX_httplib_free( dir ); + } + else { - XX_httplib_free(dir); - } else { result = -1; - SetLastError(ERROR_BAD_ARGUMENTS); + SetLastError( ERROR_BAD_ARGUMENTS ); } return result; -} /* XX_httplib_closedir */ +#else /* _WIN32 */ -#endif /* _WIN32 */ + return closedir( dir ); + +#endif /* _WIN32 */ + +} /* httplib_closedir */ diff --git a/src/httplib_compare_dir_entries.c b/src/httplib_compare_dir_entries.c index 660d938a..3c5f51f3 100644 --- a/src/httplib_compare_dir_entries.c +++ b/src/httplib_compare_dir_entries.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_config_options.c b/src/httplib_config_options.c index 04091416..20e1f6f8 100644 --- a/src/httplib_config_options.c +++ b/src/httplib_config_options.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_connect_client.c b/src/httplib_connect_client.c index 85a9a57c..26bf2785 100644 --- a/src/httplib_connect_client.c +++ b/src/httplib_connect_client.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" @@ -40,7 +43,7 @@ static struct httplib_connection * httplib_connect_client_impl( const struct htt * information, or NULL if an error occured. */ -CIVETWEB_API struct httplib_connection *httplib_connect_client_secure( const struct httplib_client_options *client_options, char *error_buffer, size_t error_buffer_size ) { +LIBHTTP_API struct httplib_connection *httplib_connect_client_secure( const struct httplib_client_options *client_options, char *error_buffer, size_t error_buffer_size ) { return httplib_connect_client_impl( client_options, 1, error_buffer, error_buffer_size ); diff --git a/src/httplib_connect_socket.c b/src/httplib_connect_socket.c index c2b03e15..d54940f7 100644 --- a/src/httplib_connect_socket.c +++ b/src/httplib_connect_socket.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * =========== + * Release 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_connect_websocket_client.c b/src/httplib_connect_websocket_client.c index 5cfc288c..62575390 100644 --- a/src/httplib_connect_websocket_client.c +++ b/src/httplib_connect_websocket_client.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_construct_etag.c b/src/httplib_construct_etag.c index 7defb1ca..715b6af9 100644 --- a/src/httplib_construct_etag.c +++ b/src/httplib_construct_etag.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_consume_socket.c b/src/httplib_consume_socket.c index 5b8a5c3c..ebb00de6 100644 --- a/src/httplib_consume_socket.c +++ b/src/httplib_consume_socket.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_cry.c b/src/httplib_cry.c index 4b10d995..f5e92510 100644 --- a/src/httplib_cry.c +++ b/src/httplib_cry.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_delete_file.c b/src/httplib_delete_file.c index 311b6895..9580314b 100644 --- a/src/httplib_delete_file.c +++ b/src/httplib_delete_file.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_difftimespec.c b/src/httplib_difftimespec.c index 1acbdf0e..855b86d7 100644 --- a/src/httplib_difftimespec.c +++ b/src/httplib_difftimespec.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_dir_scan_callback.c b/src/httplib_dir_scan_callback.c index 5062d923..f3a9441c 100644 --- a/src/httplib_dir_scan_callback.c +++ b/src/httplib_dir_scan_callback.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_discard_unread_request_data.c b/src/httplib_discard_unread_request_data.c index e6627f15..51c906ac 100644 --- a/src/httplib_discard_unread_request_data.c +++ b/src/httplib_discard_unread_request_data.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_download.c b/src/httplib_download.c index f0f0666c..4e089086 100644 --- a/src/httplib_download.c +++ b/src/httplib_download.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_event_queue.c b/src/httplib_event_queue.c index 929fce5f..c7a56cb1 100644 --- a/src/httplib_event_queue.c +++ b/src/httplib_event_queue.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_fc.c b/src/httplib_fc.c index c7bc62c7..2e21f9d6 100644 --- a/src/httplib_fc.c +++ b/src/httplib_fc.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_fclose.c b/src/httplib_fclose.c index 0849c250..b7f82199 100644 --- a/src/httplib_fclose.c +++ b/src/httplib_fclose.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_fclose_on_exec.c b/src/httplib_fclose_on_exec.c index 2180dae6..e06201d1 100644 --- a/src/httplib_fclose_on_exec.c +++ b/src/httplib_fclose_on_exec.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_fgets.c b/src/httplib_fgets.c index 2de0450e..f8bf9edd 100644 --- a/src/httplib_fgets.c +++ b/src/httplib_fgets.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_fopen.c b/src/httplib_fopen.c index 07ddb662..73d57028 100644 --- a/src/httplib_fopen.c +++ b/src/httplib_fopen.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_forward_body_data.c b/src/httplib_forward_body_data.c index 55078e4b..32759067 100644 --- a/src/httplib_forward_body_data.c +++ b/src/httplib_forward_body_data.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_free_context.c b/src/httplib_free_context.c index e8cd3a50..5b42b733 100644 --- a/src/httplib_free_context.c +++ b/src/httplib_free_context.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_get_builtin_mime_type.c b/src/httplib_get_builtin_mime_type.c index 9f2e5380..205ae56a 100644 --- a/src/httplib_get_builtin_mime_type.c +++ b/src/httplib_get_builtin_mime_type.c @@ -18,6 +18,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 2.0 */ #include "httplib_main.h" diff --git a/src/httplib_get_context.c b/src/httplib_get_context.c index 96b1cf3f..9d2998dd 100644 --- a/src/httplib_get_context.c +++ b/src/httplib_get_context.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_get_cookie.c b/src/httplib_get_cookie.c index 7465cc63..e12d5a00 100644 --- a/src/httplib_get_cookie.c +++ b/src/httplib_get_cookie.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_get_first_ssl_listener_index.c b/src/httplib_get_first_ssl_listener_index.c index a9efe16c..3b014eab 100644 --- a/src/httplib_get_first_ssl_listener_index.c +++ b/src/httplib_get_first_ssl_listener_index.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_get_header.c b/src/httplib_get_header.c index 9a449023..21c74fe5 100644 --- a/src/httplib_get_header.c +++ b/src/httplib_get_header.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_get_mime_type.c b/src/httplib_get_mime_type.c index 54b7af87..10f2bbb1 100644 --- a/src/httplib_get_mime_type.c +++ b/src/httplib_get_mime_type.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_get_option.c b/src/httplib_get_option.c index 55d727d0..f5ce124a 100644 --- a/src/httplib_get_option.c +++ b/src/httplib_get_option.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_get_option_index.c b/src/httplib_get_option_index.c index 2f1c3428..dcbb3812 100644 --- a/src/httplib_get_option_index.c +++ b/src/httplib_get_option_index.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_get_random.c b/src/httplib_get_random.c index 954e1ef4..2923745b 100644 --- a/src/httplib_get_random.c +++ b/src/httplib_get_random.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_get_rel_url_at_current_server.c b/src/httplib_get_rel_url_at_current_server.c index b6da00fb..6067e9c9 100644 --- a/src/httplib_get_rel_url_at_current_server.c +++ b/src/httplib_get_rel_url_at_current_server.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_get_remote_ip.c b/src/httplib_get_remote_ip.c index 8deb37a6..d3f1cc17 100644 --- a/src/httplib_get_remote_ip.c +++ b/src/httplib_get_remote_ip.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_get_request_handler.c b/src/httplib_get_request_handler.c index 6ef045b7..ccd78679 100644 --- a/src/httplib_get_request_handler.c +++ b/src/httplib_get_request_handler.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_get_request_info.c b/src/httplib_get_request_info.c index 3bf0572d..f0a6394e 100644 --- a/src/httplib_get_request_info.c +++ b/src/httplib_get_request_info.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_get_request_len.c b/src/httplib_get_request_len.c index eb3ef252..c8d82700 100644 --- a/src/httplib_get_request_len.c +++ b/src/httplib_get_request_len.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_get_response.c b/src/httplib_get_response.c index 5c1862d1..7c6783f9 100644 --- a/src/httplib_get_response.c +++ b/src/httplib_get_response.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_get_response_code_text.c b/src/httplib_get_response_code_text.c index f229bd86..391465c6 100644 --- a/src/httplib_get_response_code_text.c +++ b/src/httplib_get_response_code_text.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_get_server_ports.c b/src/httplib_get_server_ports.c index e69269e0..606b8e70 100644 --- a/src/httplib_get_server_ports.c +++ b/src/httplib_get_server_ports.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_get_system_name.c b/src/httplib_get_system_name.c index c3e8328e..4a894eba 100644 --- a/src/httplib_get_system_name.c +++ b/src/httplib_get_system_name.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_get_uri_type.c b/src/httplib_get_uri_type.c index 627839fe..0ff64a42 100644 --- a/src/httplib_get_uri_type.c +++ b/src/httplib_get_uri_type.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_get_user_connection_data.c b/src/httplib_get_user_connection_data.c index 6cf1d001..ef131e1d 100644 --- a/src/httplib_get_user_connection_data.c +++ b/src/httplib_get_user_connection_data.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_get_user_data.c b/src/httplib_get_user_data.c index 03cb2745..bcfd53cf 100644 --- a/src/httplib_get_user_data.c +++ b/src/httplib_get_user_data.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_get_valid_options.c b/src/httplib_get_valid_options.c index 6b5431a2..dfd01d83 100644 --- a/src/httplib_get_valid_options.c +++ b/src/httplib_get_valid_options.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_get_var.c b/src/httplib_get_var.c index 552d419d..d7c39483 100644 --- a/src/httplib_get_var.c +++ b/src/httplib_get_var.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_getreq.c b/src/httplib_getreq.c index e4ad49e9..c7af7f70 100644 --- a/src/httplib_getreq.c +++ b/src/httplib_getreq.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_global_data.c b/src/httplib_global_data.c index c20d1e05..a987f0a1 100644 --- a/src/httplib_global_data.c +++ b/src/httplib_global_data.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_gmt_time_string.c b/src/httplib_gmt_time_string.c index 50e5354d..30bdf672 100644 --- a/src/httplib_gmt_time_string.c +++ b/src/httplib_gmt_time_string.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_handle_cgi_request.c b/src/httplib_handle_cgi_request.c index 94101707..7fa00f7f 100644 --- a/src/httplib_handle_cgi_request.c +++ b/src/httplib_handle_cgi_request.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" @@ -239,7 +242,7 @@ done: XX_httplib_free(blk.buf); if (pid != (pid_t)-1) { - XX_httplib_kill(pid, SIGKILL); + httplib_kill( pid, SIGKILL ); #if !defined(_WIN32) { int st; diff --git a/src/httplib_handle_directory_request.c b/src/httplib_handle_directory_request.c index 9b700858..e443890f 100644 --- a/src/httplib_handle_directory_request.c +++ b/src/httplib_handle_directory_request.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_handle_file_based_request.c b/src/httplib_handle_file_based_request.c index 0cb2dd31..e1593766 100644 --- a/src/httplib_handle_file_based_request.c +++ b/src/httplib_handle_file_based_request.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_handle_form_request.c b/src/httplib_handle_form_request.c index e99bfeb2..3c9b352d 100644 --- a/src/httplib_handle_form_request.c +++ b/src/httplib_handle_form_request.c @@ -19,6 +19,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_handle_not_modified_static_file_request.c b/src/httplib_handle_not_modified_static_file_request.c index 63a99314..4064e020 100644 --- a/src/httplib_handle_not_modified_static_file_request.c +++ b/src/httplib_handle_not_modified_static_file_request.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_handle_propfind.c b/src/httplib_handle_propfind.c index 143ed993..39afea20 100644 --- a/src/httplib_handle_propfind.c +++ b/src/httplib_handle_propfind.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_handle_request.c b/src/httplib_handle_request.c index 71d0a355..3c8b8fe8 100644 --- a/src/httplib_handle_request.c +++ b/src/httplib_handle_request.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_handle_static_file_request.c b/src/httplib_handle_static_file_request.c index ec959683..7d1a42b4 100644 --- a/src/httplib_handle_static_file_request.c +++ b/src/httplib_handle_static_file_request.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_handle_websocket_request.c b/src/httplib_handle_websocket_request.c index 1c8afe4a..6065868d 100644 --- a/src/httplib_handle_websocket_request.c +++ b/src/httplib_handle_websocket_request.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_header_has_option.c b/src/httplib_header_has_option.c index 740a2d85..88e4ecd2 100644 --- a/src/httplib_header_has_option.c +++ b/src/httplib_header_has_option.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_inet_pton.c b/src/httplib_inet_pton.c index 170d5e7f..f4647abd 100644 --- a/src/httplib_inet_pton.c +++ b/src/httplib_inet_pton.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_initialize_ssl.c b/src/httplib_initialize_ssl.c index a8f1bb22..f1f09fc9 100644 --- a/src/httplib_initialize_ssl.c +++ b/src/httplib_initialize_ssl.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_interpret_uri.c b/src/httplib_interpret_uri.c index a72a9b94..fa0d3064 100644 --- a/src/httplib_interpret_uri.c +++ b/src/httplib_interpret_uri.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_is_authorized_for_put.c b/src/httplib_is_authorized_for_put.c index 37ce1234..5ef0d564 100644 --- a/src/httplib_is_authorized_for_put.c +++ b/src/httplib_is_authorized_for_put.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_is_file_in_memory.c b/src/httplib_is_file_in_memory.c index 7737d923..22653dbe 100644 --- a/src/httplib_is_file_in_memory.c +++ b/src/httplib_is_file_in_memory.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_is_file_opened.c b/src/httplib_is_file_opened.c index 37cc19df..70d9e647 100644 --- a/src/httplib_is_file_opened.c +++ b/src/httplib_is_file_opened.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_is_not_modified.c b/src/httplib_is_not_modified.c index 308117ec..63a62dff 100644 --- a/src/httplib_is_not_modified.c +++ b/src/httplib_is_not_modified.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_is_put_or_delete_method.c b/src/httplib_is_put_or_delete_method.c index 377279fd..fc1ae4e4 100644 --- a/src/httplib_is_put_or_delete_method.c +++ b/src/httplib_is_put_or_delete_method.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_is_valid_http_method.c b/src/httplib_is_valid_http_method.c index f2f9aeba..e3d737db 100644 --- a/src/httplib_is_valid_http_method.c +++ b/src/httplib_is_valid_http_method.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_is_valid_port.c b/src/httplib_is_valid_port.c index 4f96365d..cc8c9d1b 100644 --- a/src/httplib_is_valid_port.c +++ b/src/httplib_is_valid_port.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_is_websocket_protocol.c b/src/httplib_is_websocket_protocol.c index 34d91a6b..4d287481 100644 --- a/src/httplib_is_websocket_protocol.c +++ b/src/httplib_is_websocket_protocol.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_join_thread.c b/src/httplib_join_thread.c index 9a929625..d1b7b383 100644 --- a/src/httplib_join_thread.c +++ b/src/httplib_join_thread.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_kill.c b/src/httplib_kill.c new file mode 100644 index 00000000..941d1363 --- /dev/null +++ b/src/httplib_kill.c @@ -0,0 +1,53 @@ +/* + * Copyright (c) 2016 Lammert Bies + * Copyright (c) 2013-2016 the Civetweb developers + * Copyright (c) 2004-2013 Sergey Lyubka + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + * + * ============ + * Release: 2.0 + */ + +#include "httplib_main.h" + +/* + * int httplib_kill( pid_t pid, int sig_num ); + * + * The functopn httplib_kill() can be used to terminate a process. The function + * is a wrapper around the Posix kill() function if Posix is supported on the + * platform, or an alternative implementation on other operating systems. + */ + +LIBHTTP_API int httplib_kill( pid_t pid, int sig_num ) { + +#if defined(_WIN32) + + TerminateProcess( (HANDLE)pid, (UINT)sig_num ); + CloseHandle( (HANDLE)pid ); + + return 0; + +#else /* _WIN32 */ + + return kill( pid, sig_num ); + +#endif + +} /* httplib_kill */ diff --git a/src/httplib_load_dll.c b/src/httplib_load_dll.c index a916d334..fb8f3ffa 100644 --- a/src/httplib_load_dll.c +++ b/src/httplib_load_dll.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_lock_unlock_connection.c b/src/httplib_lock_unlock_connection.c index 91974f84..f82bc78c 100644 --- a/src/httplib_lock_unlock_connection.c +++ b/src/httplib_lock_unlock_connection.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_lock_unlock_context.c b/src/httplib_lock_unlock_context.c index ba659133..4d2f8722 100644 --- a/src/httplib_lock_unlock_context.c +++ b/src/httplib_lock_unlock_context.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_log_access.c b/src/httplib_log_access.c index c6d10e26..e43eb30e 100644 --- a/src/httplib_log_access.c +++ b/src/httplib_log_access.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_lowercase.c b/src/httplib_lowercase.c index baf83d5d..51df833f 100644 --- a/src/httplib_lowercase.c +++ b/src/httplib_lowercase.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_main.h b/src/httplib_main.h index 29bfb92d..39c7b59b 100644 --- a/src/httplib_main.h +++ b/src/httplib_main.h @@ -24,37 +24,52 @@ +#ifndef UNUSED_PARAMETER +#define UNUSED_PARAMETER(x) (void)(x) +#endif /* UNUSED_PARAMETER */ + #if defined(_WIN32) + #if !defined(_CRT_SECURE_NO_WARNINGS) #define _CRT_SECURE_NO_WARNINGS /* Disable deprecation warning in VS2005 */ -#endif +#endif /* _CRT_SECURE_NO_WARNINGS */ + + #ifndef _WIN32_WINNT /* defined for tdm-gcc so we can use getnameinfo */ #define _WIN32_WINNT 0x0501 -#endif -#else +#endif /* _WIN32_WINNT */ + +#else /* _WIN32 */ + #if defined(__GNUC__) && !defined(_GNU_SOURCE) #define _GNU_SOURCE /* for setgroups() */ -#endif +#endif /* __GNUC__ && ! _GNU_SOURCE */ + #if defined(__linux__) && !defined(_XOPEN_SOURCE) #define _XOPEN_SOURCE 600 /* For flockfile() on Linux */ -#endif +#endif /* __linux__ && ! _XOPEN_SOURCE */ + #ifndef _LARGEFILE_SOURCE #define _LARGEFILE_SOURCE /* For fseeko(), ftello() */ -#endif +#endif /* _LARGEFILE_SOURCE */ + #ifndef _FILE_OFFSET_BITS #define _FILE_OFFSET_BITS 64 /* Use 64-bit file offsets by default */ -#endif +#endif /* _FILE_OFFSET_BITS */ + #ifndef __STDC_FORMAT_MACROS #define __STDC_FORMAT_MACROS /* wants this for C++ */ -#endif +#endif /* __STDC_FORMAT_MACROS */ + #ifndef __STDC_LIMIT_MACROS #define __STDC_LIMIT_MACROS /* C++ wants that for INT64_MAX */ -#endif +#endif /* __STDC_LIMIT_MACROS */ + #ifdef __sun #define __EXTENSIONS__ /* to expose flockfile and friends in stdio.h */ #define __inline inline /* not recognized on older compiler versions */ -#endif -#endif +#endif /* __sun */ +#endif /* _WIN32 */ #if defined(_MSC_VER) /* 'type cast' : conversion from 'int' to 'HANDLE' of greater size */ @@ -66,7 +81,7 @@ #pragma warning(disable : 4820) /* not defined as a preprocessor macro, replacing with '0' for '#if/#elif' */ #pragma warning(disable : 4668) -#endif +#endif /* _MSC_VER */ /* This code uses static_assert to check some conditions. @@ -78,11 +93,10 @@ #define httplib_static_assert static_assert #elif defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L) #define httplib_static_assert _Static_assert -#else +#else /* _MSC_VER && _MSC_VER >= 1600 */ char static_assert_replacement[1]; -#define httplib_static_assert(cond, txt) \ - extern char static_assert_replacement[(cond) ? 1 : -1] -#endif +#define httplib_static_assert(cond, txt) extern char static_assert_replacement[(cond) ? 1 : -1] +#endif /* _MSC_VER && _MSC_VER >= 1600 */ httplib_static_assert(sizeof(int) == 4 || sizeof(int) == 8, "int data type size check"); httplib_static_assert(sizeof(void *) == 4 || sizeof(void *) == 8, "pointer data type size check"); @@ -92,7 +106,7 @@ httplib_static_assert(sizeof(void *) >= sizeof(int), "data type size check"); /* DTL -- including winsock2.h works better if lean and mean */ #ifndef WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN -#endif +#endif /* WIN32_LEAN_AND_MEAN */ /* Include the header file here, so the LibHTTP interface is defined for the * entire implementation, including the following forward definitions. */ @@ -104,7 +118,7 @@ httplib_static_assert(sizeof(void *) >= sizeof(int), "data type size check"); #ifndef IGNORE_UNUSED_RESULT #define IGNORE_UNUSED_RESULT(a) ((void)((a) && 1)) -#endif +#endif /* IGNORE_UNUSED_RESULT */ #ifndef _WIN32_WCE /* Some ANSI #includes are not available on Windows CE */ #include @@ -140,7 +154,7 @@ httplib_static_assert(sizeof(void *) >= sizeof(int), "data type size check"); #ifndef MAX_WORKER_THREADS #define MAX_WORKER_THREADS (1024 * 64) -#endif +#endif /* MAX_WORKER_THREADS */ #define SHUTDOWN_RD (0) #define SHUTDOWN_WR (1) @@ -155,14 +169,6 @@ httplib_static_assert(sizeof(void *) >= sizeof(int), "data type size check"); typedef const char *SOCK_OPT_TYPE; -#if !defined(PATH_MAX) -#define PATH_MAX (MAX_PATH) -#endif /* PATH_MAX */ - -#if !defined(PATH_MAX) -#define PATH_MAX (4096) -#endif /* PATH_MAX */ - httplib_static_assert(PATH_MAX >= 1, "path length must be a positive number"); #ifndef _IN_PORT_T @@ -202,11 +208,11 @@ typedef long off_t; #define __func__ __FILE__ ":" STR(__LINE__) #define strtoull(x, y, z) ((unsigned __int64)_atoi64(x)) #define strtoll(x, y, z) (_atoi64(x)) -#else +#else /* _MSC_VER < 1300 */ #define __func__ __FUNCTION__ #define strtoull(x, y, z) (_strtoui64(x, y, z)) #define strtoll(x, y, z) (_strtoi64(x, y, z)) -#endif +#endif /* _MSC_VER < 1300 */ #endif /* _MSC_VER */ #define ERRNO ((int)(GetLastError())) @@ -215,18 +221,20 @@ typedef long off_t; #if defined(_WIN64) || defined(__MINGW64__) #define SSL_LIB "ssleay64.dll" #define CRYPTO_LIB "libeay64.dll" -#else +#else /* _WIN64 || __MINGW64__ */ #define SSL_LIB "ssleay32.dll" #define CRYPTO_LIB "libeay32.dll" -#endif +#endif /* _WIN64 || __MINGW64__ */ #define O_NONBLOCK (0) #ifndef W_OK #define W_OK (2) /* http://msdn.microsoft.com/en-us/library/1w06ktdy.aspx */ -#endif +#endif /* W_OK */ + #if !defined(EWOULDBLOCK) #define EWOULDBLOCK WSAEWOULDBLOCK #endif /* !EWOULDBLOCK */ + #define _POSIX_ #define INT64_FMT "I64d" #define UINT64_FMT "I64u" @@ -239,10 +247,12 @@ typedef long off_t; #define pipe(x) _pipe(x, MG_BUF_LEN, _O_BINARY) #ifndef popen #define popen(x, y) (_popen(x, y)) -#endif +#endif /* popen */ + #ifndef pclose #define pclose(x) (_pclose(x)) -#endif +#endif /* pclose */ + #define close(x) (_close(x)) #define dlsym(x, y) (GetProcAddress((HINSTANCE)(x), (y))) #define RTLD_LAZY (0) @@ -270,59 +280,39 @@ typedef struct { #ifndef __clockid_t_defined typedef DWORD clockid_t; -#endif +#endif /* __clockid_t_defined */ + #ifndef CLOCK_MONOTONIC #define CLOCK_MONOTONIC (1) -#endif +#endif /* CLOCK_MONOTONIC */ + #ifndef CLOCK_REALTIME #define CLOCK_REALTIME (2) -#endif +#endif /* CLOCK_REALTIME */ #if defined(_MSC_VER) && (_MSC_VER >= 1900) #define _TIMESPEC_DEFINED -#endif +#endif /* _MSC_VER && _MSC_VER >= 1900 */ + #ifndef _TIMESPEC_DEFINED struct timespec { time_t tv_sec; /* seconds */ long tv_nsec; /* nanoseconds */ }; -#endif +#endif /* _TIMESPEC_DEFINED */ #define pid_t HANDLE /* MINGW typedefs pid_t to int. Using #define here. */ -/* POSIX dirent interface */ -struct dirent { - char d_name[PATH_MAX]; -}; - -typedef struct DIR { - HANDLE handle; - WIN32_FIND_DATAW info; - struct dirent result; -} DIR; - -#if defined(_WIN32) && !defined(POLLIN) -#ifndef HAVE_POLL -struct pollfd { - SOCKET fd; - short events; - short revents; -}; -#define POLLIN (0x0300) -#endif -#endif - /* Mark required libraries */ #if defined(_MSC_VER) #pragma comment(lib, "Ws2_32.lib") -#endif +#endif /* _MSC_VER */ #else /* defined(_WIN32) - \ WINDOWS / UNIX include block */ #include #include -#include #include #include #include @@ -361,11 +351,7 @@ typedef unsigned short int in_port_t; #define O_BINARY (0) #endif /* O_BINARY */ #define closesocket(a) (close(a)) -#define httplib_mkdir(conn, path, mode) (mkdir(path, mode)) #define httplib_sleep(x) (usleep((x)*1000)) -#define httplib_opendir(conn, x) (opendir(x)) -#define httplib_closedir(x) (closedir(x)) -#define httplib_readdir(x) (readdir(x)) #define ERRNO (errno) #define INVALID_SOCKET (-1) #define INT64_FMT PRId64 @@ -799,9 +785,7 @@ typedef int socklen_t; #define _DARWIN_UNLIMITED_SELECT #if defined(_WIN32) -#define SIGKILL (0) int clock_gettime( clockid_t clk_id, struct timespec *tp ); -int poll( struct pollfd *pfd, unsigned int n, int milliseconds ); #endif @@ -818,7 +802,6 @@ int XX_httplib_check_authorization( struct httplib_connection *conn, const cha int XX_httplib_check_password( const char *method, const char *ha1, const char *uri, const char *nonce, const char *nc, const char *cnonce, const char *qop, const char *response ); void XX_httplib_close_all_listening_sockets( struct httplib_context *ctx ); void XX_httplib_close_connection( struct httplib_connection *conn ); -int XX_httplib_closedir( DIR *dir ); void XX_httplib_close_socket_gracefully( struct httplib_connection *conn ); int WINCDECL XX_httplib_compare_dir_entries( const void *p1, const void *p2 ); int XX_httplib_connect_socket( struct httplib_context *ctx, const char *host, int port, int use_ssl, char *ebuf, size_t ebuf_len, SOCKET *sock, union usa *sa ); @@ -864,23 +847,20 @@ bool XX_httplib_is_valid_http_method( const char *method ); int XX_httplib_is_valid_port( unsigned long port ); int XX_httplib_is_websocket_protocol( const struct httplib_connection *conn ); int XX_httplib_join_thread( pthread_t threadid ); -int XX_httplib_kill( pid_t pid, int sig_num ); void * XX_httplib_load_dll( struct httplib_context *ctx, const char *dll_name, struct ssl_func *sw ); void XX_httplib_log_access( const struct httplib_connection *conn ); int XX_httplib_match_prefix(const char *pattern, size_t pattern_len, const char *str); void XX_httplib_mkcol( struct httplib_connection *conn, const char *path ); -int XX_httplib_mkdir( const struct httplib_connection *conn, const char *path, int mode ); int XX_httplib_must_hide_file( struct httplib_connection *conn, const char *path ); const char * XX_httplib_next_option( const char *list, struct vec *val, struct vec *eq_val ); void XX_httplib_open_auth_file( struct httplib_connection *conn, const char *path, struct file *filep ); -DIR * XX_httplib_opendir( const struct httplib_connection *conn, const char *name ); int XX_httplib_parse_auth_header( struct httplib_connection *conn, char *buf, size_t buf_size, struct ah *ah ); time_t XX_httplib_parse_date_string( const char *datetime ); int XX_httplib_parse_http_headers( char **buf, struct httplib_request_info *ri ); int XX_httplib_parse_http_message( char *buf, int len, struct httplib_request_info *ri ); int XX_httplib_parse_net( const char *spec, uint32_t *net, uint32_t *mask ); int XX_httplib_parse_range_header( const char *header, int64_t *a, int64_t *b ); -void XX_httplib_path_to_unicode( const struct httplib_connection *conn, const char *path, wchar_t *wbuf, size_t wbuf_len ); +void XX_httplib_path_to_unicode( const char *path, wchar_t *wbuf, size_t wbuf_len ); void XX_httplib_prepare_cgi_environment( struct httplib_connection *conn, const char *prog, struct cgi_environment *env ); void XX_httplib_print_dir_entry( struct de *de ); void XX_httplib_process_new_connection( struct httplib_connection *conn ); @@ -893,7 +873,6 @@ void XX_httplib_put_file( struct httplib_connection *conn, const char *path ); int XX_httplib_read_auth_file( struct file *filep, struct read_auth_file_struct *workdata ); int XX_httplib_read_request( FILE *fp, struct httplib_connection *conn, char *buf, int bufsiz, int *nread ); void XX_httplib_read_websocket( struct httplib_connection *conn, httplib_websocket_data_handler ws_data_handler, void *callback_data ); -struct dirent * XX_httplib_readdir( DIR *dir ); void XX_httplib_redirect_to_https_port( struct httplib_connection *conn, int ssl_index ); int XX_httplib_refresh_trust( struct httplib_connection *conn ); int XX_httplib_remove( const struct httplib_connection *conn, const char *path ); diff --git a/src/httplib_malloc.c b/src/httplib_malloc.c index f3c84e9f..5efd50c6 100644 --- a/src/httplib_malloc.c +++ b/src/httplib_malloc.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_master_thread.c b/src/httplib_master_thread.c index e054c529..16259a45 100644 --- a/src/httplib_master_thread.c +++ b/src/httplib_master_thread.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_match_prefix.c b/src/httplib_match_prefix.c index e59454fb..f6acdbc7 100644 --- a/src/httplib_match_prefix.c +++ b/src/httplib_match_prefix.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_md5.c b/src/httplib_md5.c index 32e9ad49..5996f69a 100644 --- a/src/httplib_md5.c +++ b/src/httplib_md5.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_mkcol.c b/src/httplib_mkcol.c index 5b7faf6e..2de859ec 100644 --- a/src/httplib_mkcol.c +++ b/src/httplib_mkcol.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" @@ -64,7 +67,7 @@ void XX_httplib_mkcol( struct httplib_connection *conn, const char *path ) { return; } - rc = XX_httplib_mkdir( conn, path, 0755 ); + rc = httplib_mkdir( path, 0755 ); if ( rc == 0 ) { diff --git a/src/httplib_mkdir.c b/src/httplib_mkdir.c index 66e73f4a..9a9ce0ba 100644 --- a/src/httplib_mkdir.c +++ b/src/httplib_mkdir.c @@ -20,20 +20,39 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 2.0 */ +#if ! defined(_WIN32) +#include +#endif /* ! _WIN32 */ + #include "httplib_main.h" -#if defined(_WIN32) +/* + * int httplib_mkdir( const char *path, int mode ); + * + * The function httplib_mkdir() creates a directory. On a Posix compliant + * system the underlying system call mkdir() is used for this. For systems + * without mkdir support an emulation function is used with the same + * functionality. + */ -int XX_httplib_mkdir( const struct httplib_connection *conn, const char *path, int mode ) { +LIBHTTP_API int httplib_mkdir( const char *path, int mode ) { + +#if defined(_WIN32) wchar_t wbuf[PATH_MAX]; - (void)mode; - XX_httplib_path_to_unicode(conn, path, wbuf, ARRAY_SIZE(wbuf)); - return CreateDirectoryW(wbuf, NULL) ? 0 : -1; + XX_httplib_path_to_unicode( path, wbuf, ARRAY_SIZE(wbuf) ); + return ( CreateDirectoryW( wbuf, NULL ) ) ? 0 : -1; -} /* XX_httplib_mkdir */ +#else /* _WIN32 */ -#endif /* _WIN32 */ + return mkdir( path, mode ); + +#endif + +} /* httplib_mkdir */ diff --git a/src/httplib_modify_passwords_file.c b/src/httplib_modify_passwords_file.c index 6a380c32..35f5310a 100644 --- a/src/httplib_modify_passwords_file.c +++ b/src/httplib_modify_passwords_file.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_must_hide_file.c b/src/httplib_must_hide_file.c index 584ee276..98963667 100644 --- a/src/httplib_must_hide_file.c +++ b/src/httplib_must_hide_file.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_next_option.c b/src/httplib_next_option.c index 1d0f9c75..e32cd9ad 100644 --- a/src/httplib_next_option.c +++ b/src/httplib_next_option.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_open_auth_file.c b/src/httplib_open_auth_file.c index c7a3b950..3f2050a6 100644 --- a/src/httplib_open_auth_file.c +++ b/src/httplib_open_auth_file.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_opendir.c b/src/httplib_opendir.c index 9864849c..e916ced3 100644 --- a/src/httplib_opendir.c +++ b/src/httplib_opendir.c @@ -20,40 +20,59 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 2.0 */ #include "httplib_main.h" #include "httplib_memory.h" +/* + * DIR *httplib_opendir( const char *name ); + * + * The function httplib_opendir() opens a directory and returns a pointer to + * a structure with the directory information if the function succeeds. When a + * problem is detected NULL is returned instead. + * + * On Windows systems this function emulates a Posix call, otherwise the Posix + * function is executed directly. + */ + +LIBHTTP_API DIR *httplib_opendir( const char *name ) { + #if defined(_WIN32) -/* Implementation of POSIX opendir/closedir/readdir for Windows. */ -DIR *XX_httplib_opendir( const struct httplib_connection *conn, const char *name ) { - - DIR *dir = NULL; + DIR *dir; wchar_t wpath[PATH_MAX]; DWORD attrs; - if (name == NULL) { - SetLastError(ERROR_BAD_ARGUMENTS); - } else if ((dir = (DIR *)XX_httplib_malloc(sizeof(*dir))) == NULL) { - SetLastError(ERROR_NOT_ENOUGH_MEMORY); - } else { - XX_httplib_path_to_unicode(conn, name, wpath, ARRAY_SIZE(wpath)); - attrs = GetFileAttributesW(wpath); - if (attrs != 0xFFFFFFFF && ((attrs & FILE_ATTRIBUTE_DIRECTORY) == FILE_ATTRIBUTE_DIRECTORY)) { + dir = NULL; - wcscat(wpath, L"\\*"); - dir->handle = FindFirstFileW(wpath, &dir->info); + if ( name == NULL ) SetLastError( ERROR_BAD_ARGUMENTS ); + else if ( (dir = XX_httplib_malloc( sizeof(*dir) )) == NULL ) SetLastError( ERROR_NOT_ENOUGH_MEMORY ); + else { + XX_httplib_path_to_unicode( conn, name, wpath, ARRAY_SIZE(wpath) ); + attrs = GetFileAttributesW( wpath ); + + if (attrs != 0xFFFFFFFF && ((attrs & FILE_ATTRIBUTE_DIRECTORY) == FILE_ATTRIBUTE_DIRECTORY) ) { + + wcscat( wpath, L"\\*" ); + dir->handle = FindFirstFileW( wpath, &dir->info ); dir->result.d_name[0] = '\0'; - } else { - XX_httplib_free(dir); + } + else { + XX_httplib_free( dir ); dir = NULL; } } return dir; -} /* XX_httplib_opendir */ +#else /* _WIN32 */ -#endif /* _WIN32 */ + return opendir( name ); + +#endif /* _WIN32 */ + +} /* httplib_opendir */ diff --git a/src/httplib_parse_auth_header.c b/src/httplib_parse_auth_header.c index 48730905..a194dd6d 100644 --- a/src/httplib_parse_auth_header.c +++ b/src/httplib_parse_auth_header.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_parse_date_string.c b/src/httplib_parse_date_string.c index e65cc598..f2ee2299 100644 --- a/src/httplib_parse_date_string.c +++ b/src/httplib_parse_date_string.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_parse_http_headers.c b/src/httplib_parse_http_headers.c index 3fcb6410..98756214 100644 --- a/src/httplib_parse_http_headers.c +++ b/src/httplib_parse_http_headers.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_parse_http_message.c b/src/httplib_parse_http_message.c index 71509ae8..4b56177b 100644 --- a/src/httplib_parse_http_message.c +++ b/src/httplib_parse_http_message.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_parse_net.c b/src/httplib_parse_net.c index 91690aad..aa27cf69 100644 --- a/src/httplib_parse_net.c +++ b/src/httplib_parse_net.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_parse_range_header.c b/src/httplib_parse_range_header.c index 334c2bd4..770f59af 100644 --- a/src/httplib_parse_range_header.c +++ b/src/httplib_parse_range_header.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_path_to_unicode.c b/src/httplib_path_to_unicode.c index d96c1c3d..95b0ab11 100644 --- a/src/httplib_path_to_unicode.c +++ b/src/httplib_path_to_unicode.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" @@ -67,7 +70,7 @@ static int httplib_wcscasecmp( const wchar_t *s1, const wchar_t *s2 ) { /* Encode 'path' which is assumed UTF-8 string, into UNICODE string. * wbuf and wbuf_len is a target buffer and its length. */ -void XX_httplib_path_to_unicode( const struct httplib_connection *conn, const char *path, wchar_t *wbuf, size_t wbuf_len ) { +void XX_httplib_path_to_unicode( const char *path, wchar_t *wbuf, size_t wbuf_len ) { char buf[PATH_MAX]; char buf2[PATH_MAX]; @@ -96,7 +99,6 @@ void XX_httplib_path_to_unicode( const struct httplib_connection *conn, const ch } } */ - (void)conn; /* conn is currently unused */ #if !defined(_WIN32_WCE) /* Only accept a full file path, not a Windows short (8.3) path. */ diff --git a/src/httplib_poll.c b/src/httplib_poll.c index ac386637..94073a29 100644 --- a/src/httplib_poll.c +++ b/src/httplib_poll.c @@ -20,40 +20,64 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 2.0 */ +#if ! defined(_WIN32) +#include +#endif /* _WIN32 */ + #include "httplib_main.h" #if defined(_WIN32) && !defined(HAVE_POLL) -int poll( struct pollfd *pfd, unsigned int n, int milliseconds ) { +/* + * int httplib_poll( struct pollfd *pfd, unsigned int n, int milliseconds ); + * + * The function poll() executes the Posix system call poll() when available, or + * en emulated version of the function on other operating systems. + */ + +LIBHTTP_API int httplib_poll( struct pollfd *pfd, unsigned int n, int milliseconds ) { + +#if defined(_WIN32) struct timeval tv; fd_set set; unsigned int i; int result; - SOCKET maxfd = 0; + SOCKET maxfd; - memset(&tv, 0, sizeof(tv)); - tv.tv_sec = milliseconds / 1000; + maxfd = 0; + + memset( & tv, 0, sizeof(tv) ); + tv.tv_sec = milliseconds / 1000; tv.tv_usec = (milliseconds % 1000) * 1000; - FD_ZERO(&set); + FD_ZERO( & set ); - for (i = 0; i < n; i++) { - FD_SET((SOCKET)pfd[i].fd, &set); + for (i=0; i maxfd) maxfd = pfd[i].fd; + if ( pfd[i].fd > maxfd ) maxfd = pfd[i].fd; } - if ((result = select((int)maxfd + 1, &set, NULL, NULL, &tv)) > 0) { - for (i = 0; i < n; i++) { - if (FD_ISSET(pfd[i].fd, &set)) pfd[i].revents = POLLIN; - } + if ( (result = select( (int)maxfd + 1, &set, NULL, NULL, &tv)) > 0 ) { + + for (i=0; ihandle != INVALID_HANDLE_VALUE) { - result = &dir->result; - WideCharToMultiByte(CP_UTF8, 0, dir->info.cFileName, -1, result->d_name, sizeof(result->d_name), NULL, NULL); + SetLastError( ERROR_BAD_ARGUMENTS ); + return NULL; + } - if (!FindNextFileW(dir->handle, &dir->info)) { + if ( dir->handle != INVALID_HANDLE_VALUE ) { - FindClose(dir->handle); - dir->handle = INVALID_HANDLE_VALUE; - } + result = & dir->result; + WideCharToMultiByte( CP_UTF8, 0, dir->info.cFileName, -1, result->d_name, sizeof(result->d_name), NULL, NULL ); - } else { - SetLastError(ERROR_FILE_NOT_FOUND); + if ( ! FindNextFileW( dir->handle, &dir->info ) ) { + + FindClose( dir->handle ); + dir->handle = INVALID_HANDLE_VALUE; } - } else SetLastError(ERROR_BAD_ARGUMENTS); + } + + else SetLastError( ERROR_FILE_NOT_FOUND ); return result; -} /* XX_httplib_readdir */ +#else /* _WIN32 */ -#endif /* _WIN32 */ + return readdir( dir ); + +#endif /* _WIN32 */ + +} /* httplib_readdir */ diff --git a/src/httplib_realloc2.c b/src/httplib_realloc2.c index 256a78e7..ac25d7a4 100644 --- a/src/httplib_realloc2.c +++ b/src/httplib_realloc2.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_redirect_to_https_port.c b/src/httplib_redirect_to_https_port.c index 5d8c21dc..a73d0d62 100644 --- a/src/httplib_redirect_to_https_port.c +++ b/src/httplib_redirect_to_https_port.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_refresh_trust.c b/src/httplib_refresh_trust.c index b2d3dfc0..c58a780f 100644 --- a/src/httplib_refresh_trust.c +++ b/src/httplib_refresh_trust.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_remove.c b/src/httplib_remove.c index 7b48d53b..044b1517 100644 --- a/src/httplib_remove.c +++ b/src/httplib_remove.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_remove_bad_file.c b/src/httplib_remove_bad_file.c index afa04cbb..b936134e 100644 --- a/src/httplib_remove_bad_file.c +++ b/src/httplib_remove_bad_file.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_remove_directory.c b/src/httplib_remove_directory.c index 34e7cc3a..7b39c868 100644 --- a/src/httplib_remove_directory.c +++ b/src/httplib_remove_directory.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" @@ -34,12 +37,12 @@ int XX_httplib_remove_directory( struct httplib_connection *conn, const char *di int truncated; int ok = 1; - if ((dirp = XX_httplib_opendir(conn, dir)) == NULL) { + if ((dirp = httplib_opendir( dir )) == NULL) { return 0; } else { de.conn = conn; - while ((dp = XX_httplib_readdir(dirp)) != NULL) { + while ((dp = httplib_readdir(dirp)) != NULL) { /* Do not show current dir (but show hidden files as they will * also be removed) */ if (!strcmp(dp->d_name, ".") || !strcmp(dp->d_name, "..")) continue; @@ -75,7 +78,7 @@ int XX_httplib_remove_directory( struct httplib_connection *conn, const char *di ok = 0; } } - XX_httplib_closedir(dirp); + httplib_closedir(dirp); IGNORE_UNUSED_RESULT(rmdir(dir)); } diff --git a/src/httplib_remove_double_dots.c b/src/httplib_remove_double_dots.c index f1753f40..23e53c79 100644 --- a/src/httplib_remove_double_dots.c +++ b/src/httplib_remove_double_dots.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_reset_per_request_attributes.c b/src/httplib_reset_per_request_attributes.c index 1fc4730f..f90dfd0f 100644 --- a/src/httplib_reset_per_request_attributes.c +++ b/src/httplib_reset_per_request_attributes.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_scan_directory.c b/src/httplib_scan_directory.c index 863b02e1..5ce87d6d 100644 --- a/src/httplib_scan_directory.c +++ b/src/httplib_scan_directory.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" @@ -33,12 +36,12 @@ int XX_httplib_scan_directory( struct httplib_connection *conn, const char *dir, struct de de; int truncated; - if ((dirp = XX_httplib_opendir(conn, dir)) == NULL) { + if ((dirp = httplib_opendir( dir)) == NULL) { return 0; } else { de.conn = conn; - while ((dp = XX_httplib_readdir(dirp)) != NULL) { + while ((dp = httplib_readdir(dirp)) != NULL) { /* Do not show current dir and hidden files */ if (!strcmp(dp->d_name, ".") || !strcmp(dp->d_name, "..") || XX_httplib_must_hide_file(conn, dp->d_name)) continue; @@ -62,7 +65,8 @@ int XX_httplib_scan_directory( struct httplib_connection *conn, const char *dir, de.file_name = dp->d_name; cb(&de, data); } - (void)XX_httplib_closedir(dirp); + + httplib_closedir(dirp); } return 1; diff --git a/src/httplib_send_authorization_request.c b/src/httplib_send_authorization_request.c index 03f6ffe9..2e1280f1 100644 --- a/src/httplib_send_authorization_request.c +++ b/src/httplib_send_authorization_request.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_send_file.c b/src/httplib_send_file.c index bf61291c..51f43082 100644 --- a/src/httplib_send_file.c +++ b/src/httplib_send_file.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_send_file_data.c b/src/httplib_send_file_data.c index 460dc7c2..f891ac42 100644 --- a/src/httplib_send_file_data.c +++ b/src/httplib_send_file_data.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_send_http_error.c b/src/httplib_send_http_error.c index d33eb4d8..7daa7c40 100644 --- a/src/httplib_send_http_error.c +++ b/src/httplib_send_http_error.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_send_no_cache_header.c b/src/httplib_send_no_cache_header.c index ad21f0d6..db54374c 100644 --- a/src/httplib_send_no_cache_header.c +++ b/src/httplib_send_no_cache_header.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_send_options.c b/src/httplib_send_options.c index fd984d4b..cccf1983 100644 --- a/src/httplib_send_options.c +++ b/src/httplib_send_options.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_send_static_cache_header.c b/src/httplib_send_static_cache_header.c index 35763ad8..8e9d9cc2 100644 --- a/src/httplib_send_static_cache_header.c +++ b/src/httplib_send_static_cache_header.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_send_websocket_handshake.c b/src/httplib_send_websocket_handshake.c index 6c799112..d1a6ff42 100644 --- a/src/httplib_send_websocket_handshake.c +++ b/src/httplib_send_websocket_handshake.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_set_acl_option.c b/src/httplib_set_acl_option.c index ef8daa10..41935b5d 100644 --- a/src/httplib_set_acl_option.c +++ b/src/httplib_set_acl_option.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_set_auth_handler.c b/src/httplib_set_auth_handler.c index 91f2f62b..75be19b6 100644 --- a/src/httplib_set_auth_handler.c +++ b/src/httplib_set_auth_handler.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_set_close_on_exec.c b/src/httplib_set_close_on_exec.c index 60ef6ee6..03d8f5e9 100644 --- a/src/httplib_set_close_on_exec.c +++ b/src/httplib_set_close_on_exec.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_set_gpass_option.c b/src/httplib_set_gpass_option.c index ab5e51e2..20d8ec02 100644 --- a/src/httplib_set_gpass_option.c +++ b/src/httplib_set_gpass_option.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_set_handler_type.c b/src/httplib_set_handler_type.c index 11049f48..7408be81 100644 --- a/src/httplib_set_handler_type.c +++ b/src/httplib_set_handler_type.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_set_non_blocking_mode.c b/src/httplib_set_non_blocking_mode.c index 34874ac6..de2521a9 100644 --- a/src/httplib_set_non_blocking_mode.c +++ b/src/httplib_set_non_blocking_mode.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_set_ports_option.c b/src/httplib_set_ports_option.c index c7838464..5239fdbe 100644 --- a/src/httplib_set_ports_option.c +++ b/src/httplib_set_ports_option.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_set_request_handler.c b/src/httplib_set_request_handler.c index e13a3f03..3ad032eb 100644 --- a/src/httplib_set_request_handler.c +++ b/src/httplib_set_request_handler.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_set_sock_timeout.c b/src/httplib_set_sock_timeout.c index 7130d95f..ee2286d8 100644 --- a/src/httplib_set_sock_timeout.c +++ b/src/httplib_set_sock_timeout.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_set_ssl_option.c b/src/httplib_set_ssl_option.c index 032fe951..cdf68b64 100644 --- a/src/httplib_set_ssl_option.c +++ b/src/httplib_set_ssl_option.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_set_tcp_nodelay.c b/src/httplib_set_tcp_nodelay.c index ac92b5e3..d918de18 100644 --- a/src/httplib_set_tcp_nodelay.c +++ b/src/httplib_set_tcp_nodelay.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_set_thread_name.c b/src/httplib_set_thread_name.c index 9514cf06..11aaa964 100644 --- a/src/httplib_set_thread_name.c +++ b/src/httplib_set_thread_name.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_set_throttle.c b/src/httplib_set_throttle.c index d7bc3602..59d3d24c 100644 --- a/src/httplib_set_throttle.c +++ b/src/httplib_set_throttle.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_set_uid_option.c b/src/httplib_set_uid_option.c index 31faa418..404a7d92 100644 --- a/src/httplib_set_uid_option.c +++ b/src/httplib_set_uid_option.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_set_user_connection_data.c b/src/httplib_set_user_connection_data.c index 5c48dbb7..07bdb86c 100644 --- a/src/httplib_set_user_connection_data.c +++ b/src/httplib_set_user_connection_data.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_set_websocket_handler.c b/src/httplib_set_websocket_handler.c index 66a56ba8..41aa2b70 100644 --- a/src/httplib_set_websocket_handler.c +++ b/src/httplib_set_websocket_handler.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_should_decode_url.c b/src/httplib_should_decode_url.c index 2142de81..633c57d8 100644 --- a/src/httplib_should_decode_url.c +++ b/src/httplib_should_decode_url.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_should_keep_alive.c b/src/httplib_should_keep_alive.c index 5d02bae9..5cf1d98e 100644 --- a/src/httplib_should_keep_alive.c +++ b/src/httplib_should_keep_alive.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_skip.c b/src/httplib_skip.c index dd72eb34..2ade3f35 100644 --- a/src/httplib_skip.c +++ b/src/httplib_skip.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_skip_quoted.c b/src/httplib_skip_quoted.c index 5dec9149..fcaa3b0b 100644 --- a/src/httplib_skip_quoted.c +++ b/src/httplib_skip_quoted.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_snprintf.c b/src/httplib_snprintf.c index d6c9bf08..a0726f5c 100644 --- a/src/httplib_snprintf.c +++ b/src/httplib_snprintf.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_sockaddr_to_string.c b/src/httplib_sockaddr_to_string.c index a8525273..6cd7e58e 100644 --- a/src/httplib_sockaddr_to_string.c +++ b/src/httplib_sockaddr_to_string.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_spawn_process.c b/src/httplib_spawn_process.c index 430f41ab..ea2608d9 100644 --- a/src/httplib_spawn_process.c +++ b/src/httplib_spawn_process.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" @@ -29,18 +32,6 @@ #if !defined(NO_CGI) -#define SIGKILL (0) - -int XX_httplib_kill(pid_t pid, int sig_num) { - - TerminateProcess((HANDLE)pid, (UINT)sig_num); - CloseHandle((HANDLE)pid); - - return 0; - -} /* kill */ - - static void trim_trailing_whitespaces( char *s ) { char *e = s + strlen(s) - 1; @@ -147,7 +138,7 @@ spawn_cleanup: #endif /* !NO_CGI */ -#else +#else /* _WIN32 */ #ifndef NO_CGI pid_t XX_httplib_spawn_process( struct httplib_connection *conn, const char *prog, char *envblk, char *envp[], int fdin[2], int fdout[2], int fderr[2], const char *dir ) { diff --git a/src/httplib_ssi.c b/src/httplib_ssi.c index d8aada30..887c8fde 100644 --- a/src/httplib_ssi.c +++ b/src/httplib_ssi.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_ssl_error.c b/src/httplib_ssl_error.c index b5f547c4..cae3264c 100644 --- a/src/httplib_ssl_error.c +++ b/src/httplib_ssl_error.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_ssl_get_client_cert_info.c b/src/httplib_ssl_get_client_cert_info.c index c3c45018..1ac0588f 100644 --- a/src/httplib_ssl_get_client_cert_info.c +++ b/src/httplib_ssl_get_client_cert_info.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_ssl_get_protocol.c b/src/httplib_ssl_get_protocol.c index ffceb0e2..56513cfe 100644 --- a/src/httplib_ssl_get_protocol.c +++ b/src/httplib_ssl_get_protocol.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_ssl_id_callback.c b/src/httplib_ssl_id_callback.c index b8236777..52b26a35 100644 --- a/src/httplib_ssl_id_callback.c +++ b/src/httplib_ssl_id_callback.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_ssl_locking_callback.c b/src/httplib_ssl_locking_callback.c index b2745b8e..48602a6d 100644 --- a/src/httplib_ssl_locking_callback.c +++ b/src/httplib_ssl_locking_callback.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_ssl_use_pem_file.c b/src/httplib_ssl_use_pem_file.c index 2d0efc73..9fdb0770 100644 --- a/src/httplib_ssl_use_pem_file.c +++ b/src/httplib_ssl_use_pem_file.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_sslize.c b/src/httplib_sslize.c index bbf76360..6405d161 100644 --- a/src/httplib_sslize.c +++ b/src/httplib_sslize.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_start.c b/src/httplib_start.c index e856fe79..44722e31 100644 --- a/src/httplib_start.c +++ b/src/httplib_start.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_start_thread.c b/src/httplib_start_thread.c index c3b3affb..f42d05ed 100644 --- a/src/httplib_start_thread.c +++ b/src/httplib_start_thread.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_start_thread_with_id.c b/src/httplib_start_thread_with_id.c index eb101ecb..798c7287 100644 --- a/src/httplib_start_thread_with_id.c +++ b/src/httplib_start_thread_with_id.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_stat.c b/src/httplib_stat.c index 3bd30888..09c82317 100644 --- a/src/httplib_stat.c +++ b/src/httplib_stat.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_stop.c b/src/httplib_stop.c index 215cce8a..8dfe8330 100644 --- a/src/httplib_stop.c +++ b/src/httplib_stop.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_store_body.c b/src/httplib_store_body.c index 77a228c9..c5bdd1f8 100644 --- a/src/httplib_store_body.c +++ b/src/httplib_store_body.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_strcasecmp.c b/src/httplib_strcasecmp.c index 506542ca..521e10a2 100644 --- a/src/httplib_strcasecmp.c +++ b/src/httplib_strcasecmp.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_strcasestr.c b/src/httplib_strcasestr.c index ab17808b..d4c908a7 100644 --- a/src/httplib_strcasestr.c +++ b/src/httplib_strcasestr.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_strdup.c b/src/httplib_strdup.c index e443d683..d0f2c428 100644 --- a/src/httplib_strdup.c +++ b/src/httplib_strdup.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_strlcpy.c b/src/httplib_strlcpy.c index f4d0c690..f83f1354 100644 --- a/src/httplib_strlcpy.c +++ b/src/httplib_strlcpy.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_strncasecmp.c b/src/httplib_strncasecmp.c index 6ce98144..38ef618f 100644 --- a/src/httplib_strncasecmp.c +++ b/src/httplib_strncasecmp.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_strndup.c b/src/httplib_strndup.c index 367ea50d..ad879371 100644 --- a/src/httplib_strndup.c +++ b/src/httplib_strndup.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_substitute_index_file.c b/src/httplib_substitute_index_file.c index cafdeecd..3c8db952 100644 --- a/src/httplib_substitute_index_file.c +++ b/src/httplib_substitute_index_file.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_suggest_connection_header.c b/src/httplib_suggest_connection_header.c index 3838b4f5..36751dcc 100644 --- a/src/httplib_suggest_connection_header.c +++ b/src/httplib_suggest_connection_header.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_timer.c b/src/httplib_timer.c index 3b4efc69..42469ed8 100644 --- a/src/httplib_timer.c +++ b/src/httplib_timer.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_tls_dtor.c b/src/httplib_tls_dtor.c index 7b9e17c2..95eea78c 100644 --- a/src/httplib_tls_dtor.c +++ b/src/httplib_tls_dtor.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_uninitialize_ssl.c b/src/httplib_uninitialize_ssl.c index 0d1965d3..e84d67fb 100644 --- a/src/httplib_uninitialize_ssl.c +++ b/src/httplib_uninitialize_ssl.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_url_decode.c b/src/httplib_url_decode.c index 1f6cce07..1b0e9e23 100644 --- a/src/httplib_url_decode.c +++ b/src/httplib_url_decode.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_url_encode.c b/src/httplib_url_encode.c index d880cbfe..b914e3eb 100644 --- a/src/httplib_url_encode.c +++ b/src/httplib_url_encode.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_version.c b/src/httplib_version.c index e5e75304..08fdad49 100644 --- a/src/httplib_version.c +++ b/src/httplib_version.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_vprintf.c b/src/httplib_vprintf.c index 24ac90f0..a3677c3f 100644 --- a/src/httplib_vprintf.c +++ b/src/httplib_vprintf.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_websocket_client_thread.c b/src/httplib_websocket_client_thread.c index a9e4ce82..f8bcbddc 100644 --- a/src/httplib_websocket_client_thread.c +++ b/src/httplib_websocket_client_thread.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_websocket_client_write.c b/src/httplib_websocket_client_write.c index afe98e33..178944f4 100644 --- a/src/httplib_websocket_client_write.c +++ b/src/httplib_websocket_client_write.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_websocket_write.c b/src/httplib_websocket_write.c index 2ca0c69b..4c6df92b 100644 --- a/src/httplib_websocket_write.c +++ b/src/httplib_websocket_write.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_websocket_write_exec.c b/src/httplib_websocket_write_exec.c index 6c9a84eb..c57e73c6 100644 --- a/src/httplib_websocket_write_exec.c +++ b/src/httplib_websocket_write_exec.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_worker_thread.c b/src/httplib_worker_thread.c index a3350f99..a4821424 100644 --- a/src/httplib_worker_thread.c +++ b/src/httplib_worker_thread.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/httplib_write.c b/src/httplib_write.c index beca92ad..c525b1a7 100644 --- a/src/httplib_write.c +++ b/src/httplib_write.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/main.c b/src/main.c index 94f47352..eba350e3 100644 --- a/src/main.c +++ b/src/main.c @@ -20,7 +20,10 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. -*/ + * + * ============ + * Release: 1.8 + */ #if defined(_WIN32) diff --git a/src/osx_clock_gettime.c b/src/osx_clock_gettime.c index 6d8909b2..66d22764 100644 --- a/src/osx_clock_gettime.c +++ b/src/osx_clock_gettime.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/win32_clock_gettime.c b/src/win32_clock_gettime.c index 6f224f80..60d80adb 100644 --- a/src/win32_clock_gettime.c +++ b/src/win32_clock_gettime.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/win32_pthread_cond_broadcast.c b/src/win32_pthread_cond_broadcast.c index caac0e31..3690461a 100644 --- a/src/win32_pthread_cond_broadcast.c +++ b/src/win32_pthread_cond_broadcast.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/win32_pthread_cond_destroy.c b/src/win32_pthread_cond_destroy.c index 1430e55c..48555ead 100644 --- a/src/win32_pthread_cond_destroy.c +++ b/src/win32_pthread_cond_destroy.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/win32_pthread_cond_init.c b/src/win32_pthread_cond_init.c index 2186d0df..7ba458e8 100644 --- a/src/win32_pthread_cond_init.c +++ b/src/win32_pthread_cond_init.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/win32_pthread_cond_signal.c b/src/win32_pthread_cond_signal.c index 1cbd338e..b61167de 100644 --- a/src/win32_pthread_cond_signal.c +++ b/src/win32_pthread_cond_signal.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/win32_pthread_cond_timedwait.c b/src/win32_pthread_cond_timedwait.c index b46c03bd..20f6a01d 100644 --- a/src/win32_pthread_cond_timedwait.c +++ b/src/win32_pthread_cond_timedwait.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/win32_pthread_cond_wait.c b/src/win32_pthread_cond_wait.c index 1c2d8c87..f4858fa3 100644 --- a/src/win32_pthread_cond_wait.c +++ b/src/win32_pthread_cond_wait.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/win32_pthread_getspecific.c b/src/win32_pthread_getspecific.c index b338dbfa..c19b5e42 100644 --- a/src/win32_pthread_getspecific.c +++ b/src/win32_pthread_getspecific.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/win32_pthread_key_create.c b/src/win32_pthread_key_create.c index d74590f9..3904a171 100644 --- a/src/win32_pthread_key_create.c +++ b/src/win32_pthread_key_create.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/win32_pthread_key_delete.c b/src/win32_pthread_key_delete.c index d85a1b2e..b014c044 100644 --- a/src/win32_pthread_key_delete.c +++ b/src/win32_pthread_key_delete.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/win32_pthread_mutex_destroy.c b/src/win32_pthread_mutex_destroy.c index e686a308..f22214fb 100644 --- a/src/win32_pthread_mutex_destroy.c +++ b/src/win32_pthread_mutex_destroy.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/win32_pthread_mutex_init.c b/src/win32_pthread_mutex_init.c index c69458ff..f2ae9425 100644 --- a/src/win32_pthread_mutex_init.c +++ b/src/win32_pthread_mutex_init.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/win32_pthread_mutex_lock.c b/src/win32_pthread_mutex_lock.c index 5287341a..7dceb85a 100644 --- a/src/win32_pthread_mutex_lock.c +++ b/src/win32_pthread_mutex_lock.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/win32_pthread_mutex_trylock.c b/src/win32_pthread_mutex_trylock.c index f90e2e7d..5c3f98be 100644 --- a/src/win32_pthread_mutex_trylock.c +++ b/src/win32_pthread_mutex_trylock.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/win32_pthread_mutex_unlock.c b/src/win32_pthread_mutex_unlock.c index b40bed98..6319bd5d 100644 --- a/src/win32_pthread_mutex_unlock.c +++ b/src/win32_pthread_mutex_unlock.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/win32_pthread_self.c b/src/win32_pthread_self.c index 2c781520..cd506130 100644 --- a/src/win32_pthread_self.c +++ b/src/win32_pthread_self.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/win32_pthread_setspecific.c b/src/win32_pthread_setspecific.c index 97f41e8d..2c83d89f 100644 --- a/src/win32_pthread_setspecific.c +++ b/src/win32_pthread_setspecific.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/wince_gmtime.c b/src/wince_gmtime.c index 04f7fe6b..bfc82d53 100644 --- a/src/wince_gmtime.c +++ b/src/wince_gmtime.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/wince_gmtime_s.c b/src/wince_gmtime_s.c index 6607a0af..e1d04ee9 100644 --- a/src/wince_gmtime_s.c +++ b/src/wince_gmtime_s.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/wince_localtime.c b/src/wince_localtime.c index 389de232..055ff605 100644 --- a/src/wince_localtime.c +++ b/src/wince_localtime.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/wince_localtime_s.c b/src/wince_localtime_s.c index 12c3a558..5867c262 100644 --- a/src/wince_localtime_s.c +++ b/src/wince_localtime_s.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/wince_rename.c b/src/wince_rename.c index 29b72862..a4511dac 100644 --- a/src/wince_rename.c +++ b/src/wince_rename.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/wince_stat.c b/src/wince_stat.c index 72ca7f99..1e1c8f57 100644 --- a/src/wince_stat.c +++ b/src/wince_stat.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/wince_strftime.c b/src/wince_strftime.c index 7cb44f8f..d052599d 100644 --- a/src/wince_strftime.c +++ b/src/wince_strftime.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h" diff --git a/src/wince_time.c b/src/wince_time.c index e334c6e3..51cb3b8c 100644 --- a/src/wince_time.c +++ b/src/wince_time.c @@ -20,6 +20,9 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. + * + * ============ + * Release: 1.8 */ #include "httplib_main.h"