@@ -432,12 +432,12 @@ func TestRunOHTTP(t *testing.T) {
432432 err = cmd .Run (cfg , out )
433433 require .NoError (t , err )
434434
435- // Verify the output
435+ // Verify the output contains the actual response body
436436 data := dataBuffer .String ()
437437
438- // httpbin /get returns JSON with the request details
439- // The response should contain JSON content
440- assert .Contains (t , data , "application/json " )
438+ // httpbin /get returns JSON with the request details including the URL
439+ // This verifies that the response body is actually written to output
440+ assert .Contains (t , data , "httpbin.agrd.workers.dev/get " )
441441}
442442
443443// TestOHTTPInvalidOptions tests that invalid OHTTP option combinations are rejected.
@@ -567,9 +567,9 @@ func TestRunOHTTPWithProxy(t *testing.T) {
567567 // Verify the request went through the proxy
568568 assert .True (t , * proxyReceived , "OHTTP request should have gone through the proxy" )
569569
570- // Verify the output contains JSON content (OHTTP response)
570+ // Verify the output contains the actual response body
571571 data := dataBuffer .String ()
572- assert .Contains (t , data , "application/json " )
572+ assert .Contains (t , data , "httpbin.agrd.workers.dev/get " )
573573}
574574
575575// TestRunWithConnectTo tests the --connect-to flag functionality.
0 commit comments