Wapp

Check-in [f914bf8729]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Avoid an extra \n at the end of the content in an CGI reply. Fix suggested by Gerome Fournier
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256:f914bf87299ec6f01095245ebce6b298590b21bb60212209158517a98c300639
User & Date: drh 2018-08-06 11:48:39
Context
2018-08-06
11:51
Typo fix on the intro.md documentation page. check-in: 766f64396a user: drh tags: trunk
11:48
Avoid an extra \n at the end of the content in an CGI reply. Fix suggested by Gerome Fournier check-in: f914bf8729 user: drh tags: trunk
2018-05-31
19:57
Fix a comment typo. check-in: 6fdf62dd60 user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to wapp.tcl.

710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
      }
    }
  } else {
    set reply [dict get $wapp .reply]
  }
  puts $chan "Content-Length: [string length $reply]\r"
  puts $chan \r
  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
# to do additional transformations or checks.







|







710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
      }
    }
  } else {
    set reply [dict get $wapp .reply]
  }
  puts $chan "Content-Length: [string length $reply]\r"
  puts $chan \r
  puts -nonewline $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
# to do additional transformations or checks.