MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / HttpClient_HandleRedirect

Function HttpClient_HandleRedirect

src/Http_Worker.c:647–655  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

645}
646
647static cc_result HttpClient_HandleRedirect(struct HttpClientState* state) {
648 cc_result res = HttpUrl_ResolveRedirect(&state->url, &state->location);
649 if (res) return res;
650
651 HttpRequest_Free(state->req);
652 Platform_Log1(" Redirecting to: %s", &state->location);
653 state->req->contentLength = 0;
654 return 0;
655}
656
657
658/*########################################################################################################################*

Callers 1

HttpBackend_DoFunction · 0.85

Calls 3

HttpUrl_ResolveRedirectFunction · 0.85
Platform_Log1Function · 0.85
HttpRequest_FreeFunction · 0.70

Tested by

no test coverage detected