-
Notifications
You must be signed in to change notification settings - Fork 994
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #915 from lautr3k/fix/http_upload
Fix/http upload
- Loading branch information
Showing
4 changed files
with
53 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,29 @@ | ||
http_http "http://" | ||
http_200 "200 " | ||
http_301 "301 " | ||
http_302 "302 " | ||
http_get "GET " | ||
http_post "POST " | ||
http_options "OPTIONS " | ||
http_10 "HTTP/1.0" | ||
http_11 "HTTP/1.1" | ||
http_content_type "content-type: " | ||
http_content_length "Content-Length: " | ||
http_cache_control "Cache-Control: " | ||
http_no_cache "no-cache" | ||
http_texthtml "text/html" | ||
http_location "location: " | ||
http_host "host: " | ||
http_crnl "\r\n" | ||
http_index_html "/index.html" | ||
http_404_html "/404.html" | ||
http_referer "Referer:" | ||
http_header_preflight "HTTP/1.0 200 OK\r\nServer: uIP/1.0\r\nConnection: Keep-Alive\r\nAccess-Control-Allow-Origin: *\r\nAccess-Control-Allow-Methods: POST, GET, OPTIONS\r\nAccess-Control-Allow-Headers: X-Filename, Content-Type, Pragma, Cache-Control\r\nAccess-Control-Max-Age: 86400\r\n" | ||
http_header_200 "HTTP/1.0 200 OK\r\nServer: uIP/1.0\r\nAccess-Control-Allow-Origin: *\r\nConnection: close\r\n" | ||
http_header_304 "HTTP/1.0 304 Not Modified\r\nServer: uIP/1.0\r\nAccess-Control-Allow-Origin: *\r\nConnection: close\r\nExpires: Thu, 31 Dec 2037 23:55:55 GMT\r\nCache-Control: max-age=315360000\r\nX-Cache: HIT\r\n" | ||
http_header_404 "HTTP/1.0 404 Not found\r\nServer: uIP/1.0\r\nAccess-Control-Allow-Origin: *\r\nConnection: close\r\n" | ||
http_header_503 "HTTP/1.0 503 Failed\r\nServer: uIP/1.0\r\nAccess-Control-Allow-Origin: *\r\nConnection: close\r\n" | ||
http_content_type_plain "Content-type: text/plain\r\n\r\n" | ||
http_content_type_html "Content-type: text/html\r\n\r\n" | ||
http_content_type_css "Content-type: text/css\r\n\r\n" | ||
http_content_type_text "Content-type: text/text\r\n\r\n" | ||
http_content_type_png "Content-type: image/png\r\n\r\n" | ||
http_content_type_gif "Content-type: image/gif\r\n\r\n" | ||
http_content_type_jpg "Content-type: image/jpeg\r\n\r\n" | ||
http_content_type_binary "Content-type: application/octet-stream\r\n\r\n" | ||
http_header_preflight "HTTP/1.0 200 OK\r\nAccess-Control-Allow-Methods: POST\r\nAccess-Control-Allow-Headers: X-Filename, Content-Type\r\nAccess-Control-Max-Age: 86400\r\n" | ||
http_header_200 "HTTP/1.0 200 OK\r\n" | ||
http_header_304 "HTTP/1.0 304 Not Modified\r\nExpires: Thu, 31 Dec 2037 23:55:55 GMT\r\nCache-Control: max-age=315360000\r\nX-Cache: HIT\r\n" | ||
http_header_404 "HTTP/1.0 404 Not found\r\n" | ||
http_header_503 "HTTP/1.0 503 Failed\r\n" | ||
http_header_all "Server: uIP/1.0\r\nConnection: close\r\nAccess-Control-Allow-Origin: *\r\n" | ||
http_content_type_plain "Content-Type: text/plain\r\n\r\n" | ||
http_content_type_html "Content-Type: text/html\r\n\r\n" | ||
http_content_type_css "Content-Type: text/css\r\n\r\n" | ||
http_content_type_text "Content-Type: text/text\r\n\r\n" | ||
http_content_type_png "Content-Type: image/png\r\n\r\n" | ||
http_content_type_gif "Content-Type: image/gif\r\n\r\n" | ||
http_content_type_jpg "Content-Type: image/jpeg\r\n\r\n" | ||
http_html ".html" | ||
http_shtml ".shtml" | ||
http_htm ".htm" | ||
http_css ".css" | ||
http_png ".png" | ||
http_gif ".gif" | ||
http_jpg ".jpg" | ||
http_text ".txt" | ||
http_txt ".txt" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,29 @@ | ||
extern const char http_http[8]; | ||
extern const char http_200[5]; | ||
extern const char http_301[5]; | ||
extern const char http_302[5]; | ||
extern const char http_get[5]; | ||
extern const char http_post[6]; | ||
extern const char http_options[9]; | ||
extern const char http_10[9]; | ||
extern const char http_11[9]; | ||
extern const char http_content_type[15]; | ||
extern const char http_content_length[17]; | ||
extern const char http_cache_control[16]; | ||
extern const char http_no_cache[9]; | ||
extern const char http_texthtml[10]; | ||
extern const char http_location[11]; | ||
extern const char http_host[7]; | ||
extern const char http_crnl[3]; | ||
extern const char http_index_html[12]; | ||
extern const char http_404_html[10]; | ||
extern const char http_referer[9]; | ||
extern const char http_header_preflight[251]; | ||
extern const char http_header_200[86]; | ||
extern const char http_header_304[184]; | ||
extern const char http_header_404[93]; | ||
extern const char http_header_503[90]; | ||
extern const char http_header_preflight[141]; | ||
extern const char http_header_200[18]; | ||
extern const char http_header_304[116]; | ||
extern const char http_header_404[25]; | ||
extern const char http_header_503[22]; | ||
extern const char http_header_all[69]; | ||
extern const char http_content_type_plain[29]; | ||
extern const char http_content_type_html[28]; | ||
extern const char http_content_type_css [27]; | ||
extern const char http_content_type_text[28]; | ||
extern const char http_content_type_png [28]; | ||
extern const char http_content_type_gif [28]; | ||
extern const char http_content_type_jpg [29]; | ||
extern const char http_content_type_binary[43]; | ||
extern const char http_html[6]; | ||
extern const char http_shtml[7]; | ||
extern const char http_htm[5]; | ||
extern const char http_css[5]; | ||
extern const char http_png[5]; | ||
extern const char http_gif[5]; | ||
extern const char http_jpg[5]; | ||
extern const char http_text[5]; | ||
extern const char http_txt[5]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters