Roy Lou
4c4444b160
Write header immediately in AbortWithStatus()
...
Otherwise, caller needs to invoke WriteHeaderNow himself after
AbortWithStatus(), which is error-prone.
Also modified ErrorLoggerT() such that it always writes log to response
body. Otherwise calling AbortWithStatus() will fail to write body because
c.Writer.Written() is set true by WriteHeaderNow().
2016-04-15 00:02:29 +08:00
Manu Mtz.-Almeida
1183c1ca8f
Fixed recovery unit tests
2016-01-26 19:28:41 +01:00
Manu Mtz-Almeida
9ecb76ef6e
Cosmetic changes
2015-05-18 20:50:46 +02:00
Manu Mtz-Almeida
99694bb716
Fixes errors
2015-05-12 15:22:13 +02:00
Manu Mtz-Almeida
54b3decc21
More unit tests
2015-04-08 13:30:17 +02:00
Manu Mtz-Almeida
ac0ad2fed8
Improves unit tests
2015-04-08 02:58:35 +02:00
Manu Mtz-Almeida
3e3ced70d4
Using log.Panic instead
2015-03-23 05:50:10 +01:00
Manu Mtz-Almeida
615c62d736
Some cosmetic changes
2015-03-23 04:41:29 +01:00
Manu Mtz-Almeida
07a3961941
General refactoring
2014-10-08 21:37:26 +02:00
Manu Mtz-Almeida
8e5397bfa0
Adds in-code license
2014-08-29 19:49:50 +02:00
Manu Mtz-Almeida
d85245b5aa
Improves unit tests
...
- Reusing much more code
- More coverage
- Cleanup
- Fixes some cases
2014-08-18 19:48:48 +02:00
Sasha Myasoedov
f2176c3100
Adjusted tests for recovery.
2014-08-11 13:38:30 +03:00
Sasha Myasoedov
fcd997e083
Added test for recovery
2014-08-08 15:50:52 +03:00