Skip to content

Commit

Permalink
Relicense httpgzip from GPLv3 to Expat-style MIT License
Browse files Browse the repository at this point in the history
The reasons for relicensing are as follows:

  (1) httpgzip is in a fairly trivial library. Anyone unwilling to use
      GPL code could probably rewrite it themselves in an
      afternoon. Therefore the GPL license of httpgzip was unlikely to
      result in anyone writing any new GPL software or preventing any
      malicious embedded product from seeing the light of day, which
      were the aims of its use.

  (2) The Go community overwhelmingly favours BSD/MIT licenses at
      present. While this alone is not a reason to relicense httpgzip,
      combined with (1) the Expat license seems a better choice due to
      its wider acceptance in the community.
  • Loading branch information
Michael Cross committed Oct 1, 2015
1 parent 7f31e5e commit f5d8d6d
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 776 deletions.
694 changes: 20 additions & 674 deletions LICENSE

Large diffs are not rendered by default.

23 changes: 3 additions & 20 deletions example_test.go
@@ -1,23 +1,6 @@
/*
Copyright 2015 The Httpgzip Authors. See the AUTHORS file at the
top-level directory of this distribution and at
<https://xi2.org/x/httpgzip/m/AUTHORS>.
This file is part of Httpgzip.
Httpgzip is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Httpgzip is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with Httpgzip. If not, see <https://www.gnu.org/licenses/>.
*/
// Copyright (c) 2015 The Httpgzip Authors.
// Use of this source code is governed by a Expat-style
// MIT license that can be found in the LICENSE file.

package httpgzip_test

Expand Down
23 changes: 3 additions & 20 deletions httpgzip.go
@@ -1,23 +1,6 @@
/*
Copyright 2015 The Httpgzip Authors. See the AUTHORS file at the
top-level directory of this distribution and at
<https://xi2.org/x/httpgzip/m/AUTHORS>.
This file is part of Httpgzip.
Httpgzip is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Httpgzip is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with Httpgzip. If not, see <https://www.gnu.org/licenses/>.
*/
// Copyright (c) 2015 The Httpgzip Authors.
// Use of this source code is governed by a Expat-style
// MIT license that can be found in the LICENSE file.

// Package httpgzip implements an http.Handler wrapper adding gzip
// compression for appropriate requests.
Expand Down
23 changes: 3 additions & 20 deletions httpgzip_test.go
@@ -1,23 +1,6 @@
/*
Copyright 2015 The Httpgzip Authors. See the AUTHORS file at the
top-level directory of this distribution and at
<https://xi2.org/x/httpgzip/m/AUTHORS>.
This file is part of Httpgzip.
Httpgzip is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Httpgzip is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with Httpgzip. If not, see <https://www.gnu.org/licenses/>.
*/
// Copyright (c) 2015 The Httpgzip Authors.
// Use of this source code is governed by a Expat-style
// MIT license that can be found in the LICENSE file.

package httpgzip_test

Expand Down
25 changes: 4 additions & 21 deletions internal/gzip/gzip_kpgzip.go
@@ -1,25 +1,8 @@
// +build kpgzip

/*
Copyright 2015 The Httpgzip Authors. See the AUTHORS file at the
top-level directory of this distribution and at
<https://xi2.org/x/httpgzip/m/AUTHORS>.
This file is part of Httpgzip.
// Copyright (c) 2015 The Httpgzip Authors.
// Use of this source code is governed by a Expat-style
// MIT license that can be found in the LICENSE file.

Httpgzip is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Httpgzip is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with Httpgzip. If not, see <https://www.gnu.org/licenses/>.
*/
// +build kpgzip

// Package gzip is a partial implementation of the gzip API using the
// github.com/klauspost/compress/gzip package. It contains the part of
Expand Down
25 changes: 4 additions & 21 deletions internal/gzip/gzip_stdlib.go
@@ -1,25 +1,8 @@
// +build !kpgzip

/*
Copyright 2015 The Httpgzip Authors. See the AUTHORS file at the
top-level directory of this distribution and at
<https://xi2.org/x/httpgzip/m/AUTHORS>.
This file is part of Httpgzip.
// Copyright (c) 2015 The Httpgzip Authors.
// Use of this source code is governed by a Expat-style
// MIT license that can be found in the LICENSE file.

Httpgzip is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Httpgzip is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with Httpgzip. If not, see <https://www.gnu.org/licenses/>.
*/
// +build !kpgzip

// Package gzip is a partial implementation of the gzip API using the
// standard libary compress/gzip package. It contains the part of the
Expand Down

0 comments on commit f5d8d6d

Please sign in to comment.