maskit commented on code in PR #10306:
URL: https://github.com/apache/trafficserver/pull/10306#discussion_r1320418562


##########
iocore/net/OCSPStapling.cc:
##########
@@ -308,10 +315,10 @@ class HTTPRequest : public Continuation
     sin.sin_port        = 65535;
 
     this->_fsm = FetchSMAllocator.alloc();
-    if (use_post) {
-      this->_fsm->ext_init(this, "POST", uri, "HTTP/1.1", 
reinterpret_cast<sockaddr *>(&sin), TS_FETCH_FLAGS_SKIP_REMAP);
-    } else {
+    if (use_get) {
       this->_fsm->ext_init(this, "GET", uri, "HTTP/1.1", 
reinterpret_cast<sockaddr *>(&sin), TS_FETCH_FLAGS_SKIP_REMAP);
+    } else {
+      this->_fsm->ext_init(this, "POST", uri, "HTTP/1.1", 
reinterpret_cast<sockaddr *>(&sin), TS_FETCH_FLAGS_SKIP_REMAP);
     }

Review Comment:
   Embedded the ternary operator into the ext_init line.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to