This fixes a subtle bug that prevented some text-based formats from being gzipped.
Contrary to other languages (where the fall through is implicit and you need to call break explicitly) in Go the break is implicit and you need to explicitly fall through to other cases in a switch.
Go's switch is like the one in C, C++, Java, JavaScript, and PHP, except that Go only runs the selected case, not all the cases that follow. In effect, the break statement that is needed at the end of each case in those languages is provided automatically in Go.
This fixes a subtle bug that prevented some text-based formats from being gzipped.
Contrary to other languages (where the fall through is implicit and you need to call break explicitly) in Go the break is implicit and you need to explicitly fall through to other cases in a switch.
From the Go tour:
Demonstration on the Go playground: https://play.golang.org/p/7g39bJz_4CH