| 83 | } DoraXrtHttpBodyMode; |
| 84 | |
| 85 | static int DoraXrtHttpAttachRuntimeThread(void) { |
| 86 | static volatile long initialized = 0; |
| 87 | if (__xnetAtomicCompareExchange32(&initialized, 1, 0) == 0) { |
| 88 | #if !defined(_WIN32) && !defined(_WIN64) |
| 89 | (void)signal(SIGPIPE, SIG_IGN); |
| 90 | #endif |
| 91 | xrtInit(); |
| 92 | xrtThreadDetachCurrent(); |
| 93 | } |
| 94 | return xrtThreadAttachCurrent() != NULL; |
| 95 | } |
| 96 | |
| 97 | static int DoraXrtHttpIsRedirect(unsigned int statusCode) { |
| 98 | return statusCode == 301u || statusCode == 302u || statusCode == 303u || |
no test coverage detected