statping/handlers/settings.go

32 lines
887 B
Go
Raw Normal View History

2018-12-04 05:57:11 +00:00
// Statping
2018-08-16 06:22:20 +00:00
// Copyright (C) 2018. Hunter Long and the project contributors
// Written by Hunter Long <info@socialeck.com> and the project contributors
//
2018-12-04 04:17:29 +00:00
// https://github.com/hunterlong/statping
2018-08-16 06:22:20 +00:00
//
// The licenses for most software and other practical works are designed
// to take away your freedom to share and change the works. By contrast,
// the GNU General Public License is intended to guarantee your freedom to
// share and change all versions of a program--to make sure it remains free
// software for all its users.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
2018-06-30 00:57:05 +00:00
package handlers
import (
"net/http"
"net/url"
2018-06-30 00:57:05 +00:00
)
func parseForm(r *http.Request) url.Values {
r.ParseForm()
return r.PostForm
2018-07-22 22:17:38 +00:00
}
2018-09-18 22:02:27 +00:00
func parseGet(r *http.Request) url.Values {
r.ParseForm()
return r.Form
}