Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • G go
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • go
  • Repository

Switch branch/tag
  • go
  • src
  • pkg
  • net
  • http
  • server.go
Find file BlameHistoryPermalink
  • Brad Fitzpatrick's avatar
    net/http: don't allow Content-Type or body on 204 and 1xx · 36477291
    Brad Fitzpatrick authored Jan 16, 2014
    Status codes 204, 304, and 1xx don't allow bodies. We already
    had a function for this, but we were hard-coding just 304
    (StatusNotModified) in a few places.  Use the function
    instead, and flesh out tests for all codes.
    
    Fixes #6685
    
    R=golang-codereviews, r
    CC=golang-codereviews
    https://golang.org/cl/53290044
    36477291

Replace server.go

Attach a file by drag & drop or click to upload


Cancel
GitLab will create a branch in your fork and start a merge request.
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7