| 645 | } |
| 646 | |
| 647 | static 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 | /*########################################################################################################################* |
no test coverage detected