MCPcopy Create free account
hub / github.com/OpenPrinting/cups / cgiIsPOST

Function cgiIsPOST

cgi-bin/var.c:425–435  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

423 */
424
425int /* O - 1 if POST, 0 if GET */
426cgiIsPOST(void)
427{
428 const char *method; /* REQUEST_METHOD environment variable */
429
430
431 if ((method = getenv("REQUEST_METHOD")) == NULL)
432 return (0);
433 else
434 return (!strcmp(method, "POST"));
435}
436
437
438/*

Callers 4

mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected