课程: Secure Coding in Go

今天就学习课程吧!

今天就开通帐号,24,700 门业界名师课程任您挑!

Challenge: Secure project

Challenge: Secure project - Go教程

课程: Secure Coding in Go

Challenge: Secure project

(upbeat music) - [Instructor] Here we have a web server that these using expvar, the messageHandler is incrementing the number of calls every time it's getting called. Once we run the server, we are going to have /debug/vars. I would like you to protect everything on the /debug with basic authentication, you can use the isValidAuth function which checks for the user, katie and the password m17ch3ll. I'm going to give you a hint, and this is, have a look at the second parameter to htp ListenAndServe.

内容