Wapp

Diff
Login

Differences From Artifact [7159053079]:

To Artifact [1e43e93987]:


774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
774
775
776
777
778
779
780

781
782
783
784
785
786
787







-







      }
    }
  } else {
    set reply [dict get $wapp .reply]
  }
  puts $chan "Content-Length: [string length $reply]\r"
  puts $chan \r
  fconfigure $chan -translation binary
  puts $chan $reply
  flush $chan
  wappInt-close-channel $chan
}

# This routine runs just prior to request-handler dispatch.  The
# default implementation is a no-op, but applications can override
822
823
824
825
826
827
828

829
830
831
832
833
834
835
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835







+







  if {[dict exists $wapp CONTENT_LENGTH]} {
    set len [dict get $wapp CONTENT_LENGTH]
  }
  if {$len>0} {
    fconfigure stdin -translation binary
    dict set wapp CONTENT [read stdin $len]
  }
  fconfigure stdout -translation binary
  wappInt-handle-request stdout 1
}

# Process new text received on an inbound SCGI request
#
proc wappInt-scgi-readable {chan} {
  if {[catch [list wappInt-scgi-readable-unsafe $chan] msg]} {