@@ -16,7 +16,7 @@ impl Response {
1616 "HTTP/1.1 404 Not Found\r \n \
1717 Content-Length: {}\r \n \
1818 Access-Control-Allow-Origin: *\r \n \
19- Access-Control-Allow-Methods: GET, POST, OPTION \r \n \r \n ",
19+ Access-Control-Allow-Methods: GET, POST, OPTIONS \r \n \r \n ",
2020 body. len( )
2121 ) ;
2222 let mut data = response_header. as_bytes ( ) . to_vec ( ) ;
@@ -30,7 +30,7 @@ impl Response {
3030 "HTTP/1.1 400 Bad Request\r \n \
3131 Content-Length: {}\r \n \
3232 Access-Control-Allow-Origin: *\r \n \
33- Access-Control-Allow-Methods: GET, POST, OPTION \r \n \r \n ",
33+ Access-Control-Allow-Methods: GET, POST, OPTIONS \r \n \r \n ",
3434 body. len( )
3535 ) ;
3636 let mut data = response_header. as_bytes ( ) . to_vec ( ) ;
@@ -47,7 +47,7 @@ impl Response {
4747 Cache-Control: post-check=0, pre-check=0\r \n \
4848 Pragma: no-cache\r \n \
4949 Access-Control-Allow-Origin: *\r \n \
50- Access-Control-Allow-Methods: GET, POST, OPTION \r \n \
50+ Access-Control-Allow-Methods: GET, POST, OPTIONS \r \n \
5151 Access-Control-Allow-Headers: Content-Encoding, Content-Type\r \n \r \n ",
5252 img. len( )
5353 ) ;
@@ -68,7 +68,7 @@ impl Response {
6868 Cache-Control: post-check=0, pre-check=0\r \n \
6969 Pragma: no-cache\r \n \
7070 Access-Control-Allow-Origin: *\r \n \
71- Access-Control-Allow-Methods: GET, POST, OPTION \r \n \r \n ". to_string ( ) ;
71+ Access-Control-Allow-Methods: GET, POST, OPTIONS \r \n \r \n ". to_string ( ) ;
7272 Response {
7373 data : response_header. as_bytes ( ) . to_vec ( ) ,
7474 chunk_count
@@ -111,7 +111,7 @@ impl Response {
111111 Content-Length: {}\r \n \
112112 Connection: keep-alive\r \n \
113113 Access-Control-Allow-Origin: *\r \n \
114- Access-Control-Allow-Methods: GET, POST, OPTION \r \n \r \n {}",
114+ Access-Control-Allow-Methods: GET, POST, OPTIONS \r \n \r \n {}",
115115 content_type,
116116 content. len( ) ,
117117 content
@@ -124,7 +124,7 @@ impl Response {
124124 Content-Length: {}\r \n \
125125 Connection: keep-alive\r \n \
126126 Access-Control-Allow-Origin: *\r \n \
127- Access-Control-Allow-Methods: GET, POST, OPTION \r \n \r \n ",
127+ Access-Control-Allow-Methods: GET, POST, OPTIONS \r \n \r \n ",
128128 content_type,
129129 content_raw. len( )
130130 ) ;
@@ -156,7 +156,7 @@ impl Response {
156156 Cache-Control: post-check=0, pre-check=0\r \n \
157157 Pragma: no-cache\r \n \
158158 Access-Control-Allow-Origin: *\r \n \
159- Access-Control-Allow-Methods: GET, POST, OPTION \r \n \
159+ Access-Control-Allow-Methods: GET, POST, OPTIONS \r \n \
160160 Access-Control-Allow-Headers: Content-Encoding, Content-Type\r \n \r \n ",
161161 content. len( )
162162 ) ;
@@ -173,7 +173,7 @@ impl Response {
173173 Cache-Control: post-check=0, pre-check=0\r \n \
174174 Pragma: no-cache\r \n \
175175 Access-Control-Allow-Origin: *\r \n \
176- Access-Control-Allow-Methods: GET, POST, OPTION \r \n \
176+ Access-Control-Allow-Methods: GET, POST, OPTIONS \r \n \
177177 Access-Control-Allow-Headers: Content-Encoding, Content-Type\r \n \r \n {}",
178178 content. len( ) ,
179179 content
@@ -187,7 +187,7 @@ impl Response {
187187 "HTTP/1.1 500 Internal Server Error\r \n \
188188 Content-Length: {}\r \n \
189189 Access-Control-Allow-Origin: *\r \n \
190- Access-Control-Allow-Methods: GET, POST, OPTION \r \n \r \n ",
190+ Access-Control-Allow-Methods: GET, POST, OPTIONS \r \n \r \n ",
191191 body. len( )
192192 ) ;
193193 let mut data = response_header. as_bytes ( ) . to_vec ( ) ;
@@ -209,7 +209,7 @@ impl Response {
209209 Access-Control-Allow-Credentials: true\r \n \
210210 Access-Control-Allow-Origin: *\r \n \
211211 Access-Control-Allow-Headers: Content-Encoding, Content-Type, Authorization\r \n \
212- Access-Control-Allow-Methods: GET, POST, OPTION , HEAD\r \n \r \n ",
212+ Access-Control-Allow-Methods: GET, POST, OPTIONS , HEAD\r \n \r \n ",
213213 cookie_data,
214214 location
215215 ) ;
@@ -228,7 +228,7 @@ impl Response {
228228 Access-Control-Allow-Credentials: true\r \n \
229229 Access-Control-Allow-Origin: *\r \n \
230230 Access-Control-Allow-Headers: Content-Encoding, Content-Type, Authorization\r \n \
231- Access-Control-Allow-Methods: GET, POST, OPTION , HEAD\r \n \r \n ",
231+ Access-Control-Allow-Methods: GET, POST, OPTIONS , HEAD\r \n \r \n ",
232232 content. len( )
233233 ) ;
234234 let mut data = response_header. as_bytes ( ) . to_vec ( ) ;
@@ -247,7 +247,7 @@ impl Response {
247247 Access-Control-Allow-Credentials: true\r \n \
248248 Access-Control-Allow-Origin: *\r \n \
249249 Access-Control-Allow-Headers: Content-Encoding, Content-Type, Authorization\r \n \
250- Access-Control-Allow-Methods: GET, POST, OPTION , HEAD\r \n \r \n ",
250+ Access-Control-Allow-Methods: GET, POST, OPTIONS , HEAD\r \n \r \n ",
251251 content. len( )
252252 ) ;
253253 let mut data = response_header. as_bytes ( ) . to_vec ( ) ;
0 commit comments