Merge branch 'rd/http-backend-code-simplification'
Code simplification. * rd/http-backend-code-simplification: http-backend: remove a duplicated code branch
This commit is contained in:
@ -466,9 +466,7 @@ static void run_service(const char **argv, int buffer_input)
|
|||||||
struct child_process cld = CHILD_PROCESS_INIT;
|
struct child_process cld = CHILD_PROCESS_INIT;
|
||||||
ssize_t req_len = get_content_length();
|
ssize_t req_len = get_content_length();
|
||||||
|
|
||||||
if (encoding && !strcmp(encoding, "gzip"))
|
if (encoding && (!strcmp(encoding, "gzip") || !strcmp(encoding, "x-gzip")))
|
||||||
gzipped_request = 1;
|
|
||||||
else if (encoding && !strcmp(encoding, "x-gzip"))
|
|
||||||
gzipped_request = 1;
|
gzipped_request = 1;
|
||||||
|
|
||||||
if (!user || !*user)
|
if (!user || !*user)
|
||||||
|
Reference in New Issue
Block a user