File tree 2 files changed +16
-15
lines changed
2 files changed +16
-15
lines changed Original file line number Diff line number Diff line change @@ -204,16 +204,17 @@ namespace ix
204
204
}
205
205
206
206
// Set a default User agent if none is present
207
- if (args->extraHeaders .find (" User-Agent" ) == args->extraHeaders .end ())
207
+ /* if (args->extraHeaders.find("User-Agent") == args->extraHeaders.end())
208
208
{
209
209
ss << "User-Agent: " << userAgent() << "\r\n";
210
- }
210
+ }*/
211
211
212
- // Set an origin header if missing
213
- if (args->extraHeaders .find (" Origin" ) == args->extraHeaders .end ())
212
+ // Set an
213
+ // header if missing
214
+ /* if (args->extraHeaders.find("Origin") == args->extraHeaders.end())
214
215
{
215
216
ss << "Origin: " << protocol << "://" << host << ":" << port << "\r\n";
216
- }
217
+ }*/
217
218
218
219
if (verb == kPost || verb == kPut || verb == kPatch || _forceBody)
219
220
{
Original file line number Diff line number Diff line change @@ -121,16 +121,16 @@ namespace ix
121
121
ss << " Sec-WebSocket-Key: " << secWebSocketKey << " \r\n " ;
122
122
123
123
// User-Agent can be customized by users
124
- if (extraHeaders.find (" User-Agent" ) == extraHeaders.end ())
125
- {
126
- ss << " User-Agent: " << userAgent () << " \r\n " ;
127
- }
128
-
129
- // Set an origin header if missing
130
- if (extraHeaders.find (" Origin" ) == extraHeaders.end ())
131
- {
132
- ss << " Origin: " << protocol << " ://" << host << " :" << port << " \r\n " ;
133
- }
124
+ // if (extraHeaders.find("User-Agent") == extraHeaders.end())
125
+ // {
126
+ // ss << "User-Agent: " << userAgent() << "\r\n";
127
+ // }
128
+
129
+ // // Set an origin header if missing
130
+ // if (extraHeaders.find("Origin") == extraHeaders.end())
131
+ // {
132
+ // ss << "Origin: " << protocol << "://" << host << ":" << port << "\r\n";
133
+ // }
134
134
135
135
for (auto & it : extraHeaders)
136
136
{
You can’t perform that action at this time.
0 commit comments