Wapp

Diff
Login

Differences From Artifact [4143061b16]:

To Artifact [0661dca85d]:


472
473
474
475
476
477
478

479




480
481
482
483
484
485
486
472
473
474
475
476
477
478
479

480
481
482
483
484
485
486
487
488
489
490







+
-
+
+
+
+







      }
      if {[string length [dict get $W .header]]>100000} {
        error "HTTP request header too big - possible DOS attack"
      }
    } elseif {$n==0} {
      # We have reached the blank line that terminates the header.
      global argv0
      if {[info exists ::argv0]} {
      set a0 [file normalize $argv0]
        set a0 [file normalize $argv0]
      } else {
        set a0 /
      }
      dict set W SCRIPT_FILENAME $a0
      dict set W DOCUMENT_ROOT [file dir $a0]
      if {[wappInt-parse-header $chan]} {
        catch {close $chan}
        return
      }
      set len 0