 				request.body.character_race
 				request.body.character_gender
 			)
-			response.redirect '/character/'
+			response.redirect 303, '/character/'
 		else
 			options = request.uonline
 			options.error = true

		if lib.user.accessGranted.sync null, dbConnection, request.body.username, request.body.password
			sessid = lib.user.createSession.sync null, dbConnection, request.body.username
			response.cookie 'sessid', sessid
			response.redirect '/'
		else
			options = request.uonline
			options.error = true

		result = lib.game.changeLocation.sync null, dbConnection, request.uonline.user.character_id, request.body.to
		if result.result != 'ok'
			console.error "Location change failed: #{result.reason}"
		response.redirect 303, '/game/'


app.post '/action/attack',
	mustBeAuthed,
	(request, response) ->
		lib.game.goAttack.sync null, dbConnection, request.uonline.user.character_id
		response.redirect 303, '/game/'


app.post '/action/escape',
	mustBeAuthed,
	(request, response) ->
		lib.game.goEscape.sync null, dbConnection, request.uonline.user.character_id
		response.redirect 303, '/game/'


app.post '/action/hit/',
